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