Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaszheng committed Jan 11, 2025
1 parent 75a9d6f commit 925e002
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/views/dialogs/DepositDialog2/DepositForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const DepositForm = ({
<div tw="flex items-center text-color-error">
<WarningIcon />
</div>
{/* TODO(deposit2.0): localization */}
<div>Min deposit is $10</div>
</div>
);
Expand Down Expand Up @@ -93,20 +94,18 @@ export const DepositForm = ({
{depositButtonInner}
</Button>
{/* TODO(deposit2.0): Show difference between current and new balance here */}
{selectedRoute && (
<div tw="flex justify-between text-small">
{/* TODO(deposit2.0): localization */}
<div tw="text-color-text-0">Available balance</div>
<div style={{ color: isFetching ? 'var(--color-text-0)' : undefined }}>
+
<Output
tw="inline"
type={OutputType.Fiat}
value={formatUnits(BigInt(selectedRoute.amountOut), USDC_DECIMALS)}
/>
</div>
<div tw="flex justify-between text-small">
{/* TODO(deposit2.0): localization */}
<div tw="text-color-text-0">Available balance</div>
<div style={{ color: isFetching ? 'var(--color-text-0)' : undefined }}>
+
<Output
tw="inline"
type={OutputType.Fiat}
value={formatUnits(BigInt(depositRoute?.amountOut ?? 0), USDC_DECIMALS)}
/>
</div>
)}
</div>
</div>
);
};

0 comments on commit 925e002

Please sign in to comment.