f
This commit is contained in:
@@ -6,12 +6,13 @@ import styles from './BridgeConfirmModal.module.css'
|
||||
interface Props {
|
||||
quote: JumperQuote
|
||||
fromAmountHuman: string
|
||||
insufficientBalance?: boolean
|
||||
isExecuting?: boolean
|
||||
onConfirm: () => void
|
||||
onClose: () => void
|
||||
}
|
||||
|
||||
export function BridgeConfirmModal({ quote, fromAmountHuman, isExecuting, onConfirm, onClose }: Props) {
|
||||
export function BridgeConfirmModal({ quote, fromAmountHuman, insufficientBalance, isExecuting, onConfirm, onClose }: Props) {
|
||||
const { action, estimate, toolDetails } = quote
|
||||
const toSymbol = action.toToken.symbol
|
||||
const fromSymbol = action.fromToken.symbol
|
||||
@@ -57,6 +58,12 @@ export function BridgeConfirmModal({ quote, fromAmountHuman, isExecuting, onConf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{insufficientBalance && (
|
||||
<p className={styles.warning}>
|
||||
Введённое количество превышает баланс кошелька — бридж будет отклонён.
|
||||
</p>
|
||||
)}
|
||||
|
||||
<button className={styles.confirmBtn} onClick={onConfirm} disabled={isExecuting}>
|
||||
{isExecuting ? 'Обработка...' : 'Подтвердить бридж'}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user