fix select bridge
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user