fix select bridge

This commit is contained in:
2026-07-02 19:31:52 +03:00
parent 7535845a86
commit 59750206ab
87 changed files with 1204 additions and 966 deletions

View File

@@ -1,3 +1,4 @@
import { getCoinIcon } from '@shared/assets/coins'
import styles from './ConvertField.module.css'
export type Currency = 'USDT' | 'RUB'
@@ -30,11 +31,17 @@ export function ConvertField({ label, value, currency, onChange, error, compact
inputMode={readOnly ? undefined : 'decimal'}
/>
<div className={styles.currency}>
<span
className={`${styles.currencyIcon} ${currency === 'USDT' ? styles.currencyUsdt : styles.currencyRub}`}
>
{currency === 'USDT' ? '₮' : '₽'}
</span>
{currency === 'USDT' && getCoinIcon('USDT') ? (
<span className={`${styles.currencyIcon} ${styles.currencyHasLogo}`}>
<img src={getCoinIcon('USDT')} alt="USDT" className={styles.currencyImg} />
</span>
) : (
<span
className={`${styles.currencyIcon} ${currency === 'USDT' ? styles.currencyUsdt : styles.currencyRub}`}
>
{currency === 'USDT' ? '₮' : '₽'}
</span>
)}
{currency}
</div>
</div>