Skip to content

Commit

Permalink
Merge pull request #494 from WatchItDev/app/fix/minor-issues
Browse files Browse the repository at this point in the history
fix: minor issues
  • Loading branch information
geolffreym authored Jan 25, 2025
2 parents 7c85c89 + 3b2ed2b commit 0baddc8
Show file tree
Hide file tree
Showing 16 changed files with 965 additions and 767 deletions.
41 changes: 27 additions & 14 deletions src/components/user-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,24 +151,37 @@ interface UserNameAndBadgeProps {
address: Address;
}

export const UserNameAndBadge : FC<UserNameAndBadgeProps> = ({ name, address}) => {
export const UserNameAndBadge: FC<UserNameAndBadgeProps> = ({ name, address }) => {
return (
<Box sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-start',
}}>

<Typography sx={{mr:'2px'}}>{name}</Typography>
<Box sx={{
<Box
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: '50%',
}}>
justifyContent: 'flex-start',
}}
>
<Typography
sx={{
mr: '2px',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
maxWidth: '100px',
}}
>
{name}
</Typography>
<Box
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: '50%',
}}
>
<BadgeVerified address={address} />
</Box>
</Box>

);
}
};

Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function FinanceQuickTransferModal({
try {
await transfer({ amount, recipient: address ?? '' });

onFinish();

const senderId = sessionData?.profile?.id ?? address;

// Build the notification payload
Expand Down Expand Up @@ -136,7 +138,6 @@ function FinanceQuickTransferModal({
notifySuccess(SUCCESS.TRANSFER_CREATED_SUCCESSFULLY, {
destination: isSame ? contactInfo?.metadata?.displayName : truncateAddress(address ?? ''),
});
onFinish();
} catch (err: any) {
notifyError(ERRORS.TRANSFER_FAILED_ERROR);
}
Expand Down
Loading

0 comments on commit 0baddc8

Please sign in to comment.