From 2b7ca35c750112503385f0e637474206e4bdc560 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 11 Sep 2024 23:06:09 +0200 Subject: [PATCH 1/3] add treasury redirection --- src/app/treasury/page.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/app/treasury/page.tsx diff --git a/src/app/treasury/page.tsx b/src/app/treasury/page.tsx new file mode 100644 index 00000000..59a9fec7 --- /dev/null +++ b/src/app/treasury/page.tsx @@ -0,0 +1,18 @@ +"use client"; + +import { useEffect } from "react"; +import { useRouter } from "next/navigation"; + +const Treasury = () => { + const router = useRouter(); + + useEffect(() => { + router.push( + "https://dashboard.radixdlt.com/account/account_rdx168qrzyngejus9nazhp7rw9z3qn2r7uk3ny89m5lwvl299ayv87vpn5" + ); + }, [router]); + + return null; +}; + +export default Treasury; From b6d7fd6f4559ee158ba5cbbede531f01abe9a15b Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 11 Sep 2024 23:06:30 +0200 Subject: [PATCH 2/3] add treasury shortcut to footer --- src/app/components/Footer.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/components/Footer.tsx b/src/app/components/Footer.tsx index a3935751..b4694769 100644 --- a/src/app/components/Footer.tsx +++ b/src/app/components/Footer.tsx @@ -30,6 +30,10 @@ export function Footer() { text: t("roadmap"), url: "https://ductus.notion.site/DeXter-Roadmap-e8faed71fe1c4cdf95fb247f682c0d3a", }, + { + text: t("treasury"), + url: "https://dashboard.radixdlt.com/account/account_rdx168qrzyngejus9nazhp7rw9z3qn2r7uk3ny89m5lwvl299ayv87vpn5", + }, ], }; const contentColumn2 = { From 80a1fcff1a5bf0f8c418410dcf852be5139f3069 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 11 Sep 2024 23:06:50 +0200 Subject: [PATCH 3/3] add translations for 'treasury' --- src/app/state/locales/en/footer.json | 3 ++- src/app/state/locales/pt/footer.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/state/locales/en/footer.json b/src/app/state/locales/en/footer.json index 89a2b937..513168e0 100644 --- a/src/app/state/locales/en/footer.json +++ b/src/app/state/locales/en/footer.json @@ -18,5 +18,6 @@ "report_bug": "Report bug", "support": "Support", "report_translation_issue": "Report translation issue", - "roadmap": "Roadmap" + "roadmap": "Roadmap", + "treasury": "Treasury" } diff --git a/src/app/state/locales/pt/footer.json b/src/app/state/locales/pt/footer.json index 324b33be..95b0e867 100644 --- a/src/app/state/locales/pt/footer.json +++ b/src/app/state/locales/pt/footer.json @@ -18,5 +18,6 @@ "report_bug": "Relatar erro", "support": "Suporte", "report_translation_issue": "Relatar problema de tradução", - "roadmap": "Roadmap" + "roadmap": "Roadmap", + "treasury": "Treasury" }