From f2ef266d7a1cfe5bbf0eb2645f298d4251fbe742 Mon Sep 17 00:00:00 2001 From: Nikhil Saboo Date: Mon, 30 Sep 2024 11:17:50 +0530 Subject: [PATCH 1/3] Rename title and add button for banxa --- components/account/OnboardingModal.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/account/OnboardingModal.tsx b/components/account/OnboardingModal.tsx index c49367710..25348a3fe 100644 --- a/components/account/OnboardingModal.tsx +++ b/components/account/OnboardingModal.tsx @@ -27,13 +27,21 @@ interface ButtonListProps { const exchangeList = [ { - title: "Purchase ZTG with Crypto or Fiat (CEX)", + title: "Buy ZTG on Gate (CEX)", disabled: false, onClick: () => window.open("https://blog.zeitgeist.pm/how-to-buy-ztg-on-gateio/"), }, { - title: "Trade for ZTG with Crypto (DEX)", + title: "Buy ZTG on Banxa (Fiat)", + disabled: false, + onClick: () => + window.open( + "https://checkout.banxa.com/?coinType=ZTG&blockchain=ZTG&orderMode=BUY", + ), + }, + { + title: "Buy ZTG on HydraDX (DEX)", disabled: false, onClick: () => { window.open( From 38c1ccb9b0c5ee1988ce73fc741e5240760075d6 Mon Sep 17 00:00:00 2001 From: Nikhil Saboo Date: Tue, 8 Oct 2024 19:08:29 +0530 Subject: [PATCH 2/3] Reformat --- components/account/OnboardingModal.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/account/OnboardingModal.tsx b/components/account/OnboardingModal.tsx index 25348a3fe..673f60e65 100644 --- a/components/account/OnboardingModal.tsx +++ b/components/account/OnboardingModal.tsx @@ -15,6 +15,7 @@ interface StepperProps { } interface ButtonProps { + className?: string; title: string; icon?: React.ReactNode | string; disabled: boolean; @@ -27,13 +28,15 @@ interface ButtonListProps { const exchangeList = [ { - title: "Buy ZTG on Gate (CEX)", + title: "Gate.io (CEX)", disabled: false, onClick: () => window.open("https://blog.zeitgeist.pm/how-to-buy-ztg-on-gateio/"), }, { - title: "Buy ZTG on Banxa (Fiat)", + className: "", + title: "Banxa (Fiat)", + icon: NEW, disabled: false, onClick: () => window.open( @@ -41,7 +44,7 @@ const exchangeList = [ ), }, { - title: "Buy ZTG on HydraDX (DEX)", + title: "HydraDX (DEX)", disabled: false, onClick: () => { window.open( @@ -163,7 +166,7 @@ export const ButtonList: React.FC = ({ buttonList }) => { key={index} disabled={button.disabled} onClick={button.onClick} - className={`flex min-h-[56px] w-full items-center justify-center rounded-lg bg-mystic p-2 text-center hover:bg-gray-100 ${ + className={`flex min-h-[56px] w-full items-center justify-center rounded-lg bg-mystic p-2 text-center hover:bg-gray-100 ${button?.className} ${ button.disabled === true ? "bg-gray-light-2" : "border" }`} > From 33de8cd64614857f65390c8003254d4c478fc51d Mon Sep 17 00:00:00 2001 From: Nikhil Saboo Date: Tue, 8 Oct 2024 19:09:25 +0530 Subject: [PATCH 3/3] Fix prettier issues --- components/account/OnboardingModal.tsx | 6 +++++- components/ui/ReferendumSummary.tsx | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/components/account/OnboardingModal.tsx b/components/account/OnboardingModal.tsx index 673f60e65..265cf9ed6 100644 --- a/components/account/OnboardingModal.tsx +++ b/components/account/OnboardingModal.tsx @@ -36,7 +36,11 @@ const exchangeList = [ { className: "", title: "Banxa (Fiat)", - icon: NEW, + icon: ( + + NEW + + ), disabled: false, onClick: () => window.open( diff --git a/components/ui/ReferendumSummary.tsx b/components/ui/ReferendumSummary.tsx index 69f9756bf..210ea73aa 100644 --- a/components/ui/ReferendumSummary.tsx +++ b/components/ui/ReferendumSummary.tsx @@ -12,12 +12,12 @@ const ReferendumSummary = ({ return ( <> {referendum && ( -
+
-
+
-
+
{referendum.ayePercentage.mul(100).toFixed(1)}%
Aye
-
-
+
+
{referendum.nayPercentage.mul(100).toFixed(1)}%
Nay