Skip to content

Commit

Permalink
feat(wallet & dashboard): fix review & send icon (#4373)
Browse files Browse the repository at this point in the history
* fix icon

* feat: remove unncessary div

* fix(dashboard): remove character from TxnAmount component, update text size.

---------

Co-authored-by: Panteleymonchuk <panteleymonchuk@gmail.com>
Co-authored-by: Bran <52735957+brancoder@users.noreply.github.com>
  • Loading branch information
3 people authored and jkrvivian committed Jan 6, 2025
1 parent 8a30632 commit 914e3c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ export function ReviewValuesFormView({
<CardImage type={ImageType.BgSolid}>
<CoinIcon
coinType={coinType}
size={ImageIconSize.Small}
rounded
hasCoinWrapper
size={ImageIconSize.Small}
/>
</CardImage>
<CardBody
Expand Down
9 changes: 1 addition & 8 deletions apps/wallet/src/ui/app/components/receipt-card/TxnAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
CardType,
ImageType,
} from '@iota/apps-ui-kit';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';

interface TxnAmountProps {
amount: string | number | bigint;
Expand All @@ -29,13 +28,7 @@ export function TxnAmount({ amount, coinType, subtitle, approximation }: TxnAmou
return Number(amount) !== 0 ? (
<Card type={CardType.Filled}>
<CardImage type={ImageType.BgSolid}>
<div className="flex h-full w-full items-center justify-center rounded-full border border-shader-neutral-light-8 text-neutral-10 dark:text-neutral-92">
<CoinIcon
coinType={coinType}
rounded
size={coinType === IOTA_TYPE_ARG ? ImageIconSize.Small : ImageIconSize.Full}
/>
</div>
<CoinIcon coinType={coinType} rounded size={ImageIconSize.Large} hasCoinWrapper />
</CardImage>
<CardBody
title={`${approximation ? '~' : ''}${formatAmount} ${symbol}`}
Expand Down

0 comments on commit 914e3c7

Please sign in to comment.