14.05.2026 rip

This commit is contained in:
2026-05-14 22:04:30 +03:00
parent ca3dd78783
commit 789d99aa12
4 changed files with 27 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ interface Props {
token: Token
tokenOptions: Token[]
amount: string
usd: string
usd?: string
slippage?: string
onTokenChange: (token: Token) => void
onAmountChange?: (v: string) => void
@@ -84,7 +84,7 @@ export function SwapCard({
) : (
<div className={styles.display}>
<span className={styles.int}>{intPart}</span>
<span className={styles.dec}>.{decPart}</span>
{decPart && <span className={styles.dec}>.{decPart}</span>}
</div>
)}
@@ -95,10 +95,11 @@ export function SwapCard({
</div>
<div className={styles.bottom}>
<span className={styles.usd}>
${usd}
{slippage && <span className={styles.neg}> ({slippage})</span>}
</span>
{usd && (
<span className={styles.usd}>
${usd}
</span>
)}
<span className={styles.balance}>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--text-secondary)" strokeWidth="2">
<rect x="2" y="6" width="20" height="14" rx="3" />