Skip to content

Commit 0baddc8

Browse files
authored
Merge pull request #494 from WatchItDev/app/fix/minor-issues
fix: minor issues
2 parents 7c85c89 + 3b2ed2b commit 0baddc8

16 files changed

+965
-767
lines changed

src/components/user-item/index.tsx

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,37 @@ interface UserNameAndBadgeProps {
151151
address: Address;
152152
}
153153

154-
export const UserNameAndBadge : FC<UserNameAndBadgeProps> = ({ name, address}) => {
154+
export const UserNameAndBadge: FC<UserNameAndBadgeProps> = ({ name, address }) => {
155155
return (
156-
<Box sx={{
157-
display: 'flex',
158-
alignItems: 'center',
159-
justifyContent: 'flex-start',
160-
}}>
161-
162-
<Typography sx={{mr:'2px'}}>{name}</Typography>
163-
<Box sx={{
156+
<Box
157+
sx={{
164158
display: 'flex',
165159
alignItems: 'center',
166-
justifyContent: 'center',
167-
borderRadius: '50%',
168-
}}>
160+
justifyContent: 'flex-start',
161+
}}
162+
>
163+
<Typography
164+
sx={{
165+
mr: '2px',
166+
whiteSpace: 'nowrap',
167+
overflow: 'hidden',
168+
textOverflow: 'ellipsis',
169+
maxWidth: '100px',
170+
}}
171+
>
172+
{name}
173+
</Typography>
174+
<Box
175+
sx={{
176+
display: 'flex',
177+
alignItems: 'center',
178+
justifyContent: 'center',
179+
borderRadius: '50%',
180+
}}
181+
>
169182
<BadgeVerified address={address} />
170183
</Box>
171184
</Box>
172-
173185
);
174-
}
186+
};
187+

src/sections/finance/components/finance-quick-transfer-modal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ function FinanceQuickTransferModal({
102102
try {
103103
await transfer({ amount, recipient: address ?? '' });
104104

105+
onFinish();
106+
105107
const senderId = sessionData?.profile?.id ?? address;
106108

107109
// Build the notification payload
@@ -136,7 +138,6 @@ function FinanceQuickTransferModal({
136138
notifySuccess(SUCCESS.TRANSFER_CREATED_SUCCESSFULLY, {
137139
destination: isSame ? contactInfo?.metadata?.displayName : truncateAddress(address ?? ''),
138140
});
139-
onFinish();
140141
} catch (err: any) {
141142
notifyError(ERRORS.TRANSFER_FAILED_ERROR);
142143
}

0 commit comments

Comments
 (0)