Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyvy-vi committed Jul 14, 2023
1 parent e2ebf76 commit 4082c29
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/UserWithPFPInCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@ interface IUserWithPFPInCell {

export const UserWithPFPInCell: FC<IUserWithPFPInCell> = ({ user }) => {
const pfpToken = useGiverPFPToken(user?.walletAddress, user?.avatar);
const userProfileLink = addressToUserView(user?.walletAddress?.toLowerCase()) || "";
const userProfileLink =
addressToUserView(user?.walletAddress?.toLowerCase()) || '';
const name =
user?.name || shortenAddress(user?.walletAddress?.toLowerCase()) || '\u200C';
user?.name ||
shortenAddress(user?.walletAddress?.toLowerCase()) ||
'\u200C';
return pfpToken ? (
<Flex gap='12px' alignItems='center'>
<StyledPFP pfpToken={pfpToken} />
<Link href={userProfileLink}>{name} </Link>
</Flex>
) : (
<NoAvatar><Link href={userProfileLink}>{name} </Link></NoAvatar>
<NoAvatar>
<Link href={userProfileLink}>{name} </Link>
</NoAvatar>
);
};
const StyledPFP = styled(PFP)`
Expand Down

0 comments on commit 4082c29

Please sign in to comment.