14.05.2026 rip

This commit is contained in:
2026-05-14 23:57:47 +03:00
parent 7c8e812d4b
commit 6fc9f38182
13 changed files with 360 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ interface Props {
onSetPercent?: (p: number) => void
selectedNetwork?: string
onNetworkChange?: (network: string) => void
hideNetworkSelect?: boolean
}
const NETWORKS = ['ETH', 'BSC', 'TRX', 'SOL']
@@ -21,7 +22,7 @@ const PERCENTS = [25, 50, 100]
export function SwapCard({
mode, token, tokenOptions, amount, usd,
onTokenChange, onAmountChange, onSetPercent,
selectedNetwork, onNetworkChange,
selectedNetwork, onNetworkChange, hideNetworkSelect,
}: Props) {
const [intPart, decPart] = amount.split('.')
@@ -45,7 +46,7 @@ export function SwapCard({
<div className={styles.card}>
<div className={styles.top}>
<div className={styles.label}>
{mode === 'from' && (
{mode === 'from' && !hideNetworkSelect && (
<div className={styles.networkPills}>
{NETWORKS.map(n => (
<button