From f99328602f18b790234c82cc21d2bb9df5fe59a0 Mon Sep 17 00:00:00 2001 From: MrX-SNX Date: Sun, 1 Sep 2024 20:41:00 +0100 Subject: [PATCH] ref: removed unused pfp (#430) * ref: removed unused pfp * ref: check if address is defined --- .../components/CouncilTabs/CouncilTabs.tsx | 2 - .../components/CouncilUser/CouncilUser.tsx | 2 +- .../EditNominationConfirmation.tsx | 2 +- .../EditNomination/EditNominationSelect.tsx | 2 +- .../components/NominateSelf/NominateSelf.tsx | 4 +- .../components/UserListItem/UserListItem.tsx | 8 +- .../ProfilePicture/ProfilePicture.tsx | 87 +++++++------------ .../UserProfileCard/UserProfileDetails.tsx | 2 +- .../UserProfileEditPreview.tsx | 2 +- .../UserTableView/UserTableView.tsx | 1 - 10 files changed, 37 insertions(+), 75 deletions(-) diff --git a/governance/ui/src/components/CouncilTabs/CouncilTabs.tsx b/governance/ui/src/components/CouncilTabs/CouncilTabs.tsx index 4f8b7823b..7cf3da698 100644 --- a/governance/ui/src/components/CouncilTabs/CouncilTabs.tsx +++ b/governance/ui/src/components/CouncilTabs/CouncilTabs.tsx @@ -162,7 +162,6 @@ export default function CouncilTabs({ activeCouncil }: { activeCouncil: CouncilS {councilPeriod === '2' && utils.isAddress(voteAddressState) ? ( {userInformation[index].userInformation?.address && ( {user ? ( - + ) : ( - + - + - + - + - + { - return ( - <> - {imageSrc ? ( - - {!!newVoteCast && ( - - )} - - - ) : ( - (address || !!newVoteCast) && ( - - {!!newVoteCast && ( - - )} - - - ) - )} - - ); + if (address || newVoteCast) { + return ( + + {!!newVoteCast && ( + + )} + + + ); + } + return null; }; diff --git a/governance/ui/src/components/UserProfileCard/UserProfileDetails.tsx b/governance/ui/src/components/UserProfileCard/UserProfileDetails.tsx index 6e578455d..428402d90 100644 --- a/governance/ui/src/components/UserProfileCard/UserProfileDetails.tsx +++ b/governance/ui/src/components/UserProfileCard/UserProfileDetails.tsx @@ -125,7 +125,7 @@ export const UserProfileDetails = ({ _hover={{}} /> )} - + - +