diff --git a/pages/deposit.tsx b/pages/deposit.tsx index 74c3103cd..8e0ebd9a8 100644 --- a/pages/deposit.tsx +++ b/pages/deposit.tsx @@ -285,21 +285,7 @@ const DepositPage: NextPage = () => { const [currency, setCurrency] = useState("ztg"); const [paymentMethod, setPaymentMethod] = useState< DepositPaymentMethod | undefined - >("crypto"); - - const disabledPaymentMethods = useMemo< - DepositPaymentMethod[] | undefined - >(() => { - if (currency === "ztg") { - return ["card"]; - } - }, [currency]); - - useEffect(() => { - if (currency === "ztg" && method === "buy" && paymentMethod === "card") { - setPaymentMethod(undefined); - } - }, [currency, method, paymentMethod]); + >("card"); const encodedAddress = wallet.realAddress && @@ -342,13 +328,52 @@ const DepositPage: NextPage = () => { labels={DepositPaymentMethodLabels} selected={paymentMethod} onChange={setPaymentMethod} - disabled={disabledPaymentMethods} - disabledItemClassName="!bg-misty-harbor text-sky-600" className="" itemClassName="text-center center outline-none rounded-lg bg-white p-3 leading-10" selectedItemClassName="!bg-ice-hush" /> )} + {method === "buy" && + currency === "ztg" && + paymentMethod === "card" && + encodedAddress && ( +
+ +
+
+ Zeitgeist currency +
Zeitgeist Address:
+
+
+ {encodedAddress} + + {shortenAddress(encodedAddress, 12, 12)} + + +
+
+
+ After purchasing ZTG return to this page and select the Deposit + tab to move it to your account on Zeitgeist +
+
+ )} {method === "buy" && currency === "ztg" && paymentMethod === "crypto" && ( @@ -356,7 +381,7 @@ const DepositPage: NextPage = () => { items={[ { label: "Hydra DX", - url: "https://app.hydradx.io/trade?assetIn=5&assetOut=12", + url: "https://app.hydration.net/trade/swap?assetIn=5&assetOut=12", }, { label: "Gate.io", url: "https://www.gate.io/trade/ZTG_USDT" }, ]} @@ -369,7 +394,7 @@ const DepositPage: NextPage = () => { items={[ { label: "DEX", - url: "https://app.hydradx.io/trade?assetIn=10&assetOut=5", + url: "https://app.hydration.net/trade/swap?assetIn=10&assetOut=5", }, { label: "CEX",