Skip to content

Commit

Permalink
fix send confirmation screen ui
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed May 22, 2024
1 parent 9cb9a9a commit ea35b43
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
6 changes: 3 additions & 3 deletions web-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 20 additions & 18 deletions web-frontend/src/pages/TransferCoins/SendCoins/SendConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,27 +108,29 @@ export function SendConfirmation(props: SendConfirmationProps) {
'mr-3',
)}
/>
<div className="flex items-center gap-8 ">
<div className="flex items-center">
<Tooltip body={content} />
<p>{Intl.t('send-coins.fee')}</p>
<div className="flex flex-col gap-4 p-4">
<div className="flex items-center gap-8">
<div className="flex gap-2 items-center">
<Tooltip customClass="max-w-[380px] p-2" body={content} />
<p>{Intl.t('send-coins.fee')}</p>
</div>
<Balance amount={fees} symbol="MAS" size="xs" />
</div>
<Balance amount={fees} symbol="MAS" size="xs" />
</div>
<div
data-testid="send-confirmation-recipient"
className="text-info flex items-center gap-2"
>
<div>{Intl.t('send-coins.recipient')}</div>
<Clipboard
displayedContent={formattedRecipientAddress}
rawContent={recipientAddress}
error={Intl.t('errors.no-content-to-copy')}
className="flex flex-row items-center mas-body2 justify-between
<div
data-testid="send-confirmation-recipient"
className="text-info flex items-center gap-2"
>
<div>{Intl.t('send-coins.recipient')}</div>
<Clipboard
displayedContent={formattedRecipientAddress}
rawContent={recipientAddress}
error={Intl.t('errors.no-content-to-copy')}
className="flex flex-row items-center mas-body2 justify-between
w-fit h-fit px-3 py-1 rounded bg-primary cursor-pointer"
/>
/>
</div>
{recipientDomainName && <Mns mns={recipientDomainName} />}
</div>
{recipientDomainName && <Mns mns={recipientDomainName} />}
</div>
<Button disabled={isLoading} onClick={() => handleConfirm(true)}>
{Intl.t('send-coins.confirm-sign')}
Expand Down

0 comments on commit ea35b43

Please sign in to comment.