From d10555e9b3a0317079bd9267bf0e698c2119fbfe Mon Sep 17 00:00:00 2001 From: Trung-Tin Pham <60747384+AtelyPham@users.noreply.github.com> Date: Wed, 28 Aug 2024 21:37:37 +0700 Subject: [PATCH 01/51] chore(tangle-dapp): Enable restake pages --- apps/tangle-dapp/app/restake/_page.tsx | 10 --- .../deposit/{_layout.tsx => layout.tsx} | 0 .../restake/deposit/{_page.tsx => page.tsx} | 0 .../app/restake/{_layout.tsx => layout.tsx} | 0 apps/tangle-dapp/app/restake/page.tsx | 5 ++ .../restake/stake/{_layout.tsx => layout.tsx} | 0 .../app/restake/stake/{_page.tsx => page.tsx} | 0 .../restake/unstake/{_page.tsx => page.tsx} | 0 .../components/WalletModal/WalletModal.tsx | 79 +++++++++---------- 9 files changed, 42 insertions(+), 52 deletions(-) delete mode 100644 apps/tangle-dapp/app/restake/_page.tsx rename apps/tangle-dapp/app/restake/deposit/{_layout.tsx => layout.tsx} (100%) rename apps/tangle-dapp/app/restake/deposit/{_page.tsx => page.tsx} (100%) rename apps/tangle-dapp/app/restake/{_layout.tsx => layout.tsx} (100%) create mode 100644 apps/tangle-dapp/app/restake/page.tsx rename apps/tangle-dapp/app/restake/stake/{_layout.tsx => layout.tsx} (100%) rename apps/tangle-dapp/app/restake/stake/{_page.tsx => page.tsx} (100%) rename apps/tangle-dapp/app/restake/unstake/{_page.tsx => page.tsx} (100%) diff --git a/apps/tangle-dapp/app/restake/_page.tsx b/apps/tangle-dapp/app/restake/_page.tsx deleted file mode 100644 index cc6d183f3..000000000 --- a/apps/tangle-dapp/app/restake/_page.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { redirect } from 'next/navigation'; - -import { PagePath } from '../../types'; - -export const dynamic = 'force-static'; - -export default function RestakePage() { - // Default redirect to deposit page - return redirect(PagePath.RESTAKE_DEPOSIT); -} diff --git a/apps/tangle-dapp/app/restake/deposit/_layout.tsx b/apps/tangle-dapp/app/restake/deposit/layout.tsx similarity index 100% rename from apps/tangle-dapp/app/restake/deposit/_layout.tsx rename to apps/tangle-dapp/app/restake/deposit/layout.tsx diff --git a/apps/tangle-dapp/app/restake/deposit/_page.tsx b/apps/tangle-dapp/app/restake/deposit/page.tsx similarity index 100% rename from apps/tangle-dapp/app/restake/deposit/_page.tsx rename to apps/tangle-dapp/app/restake/deposit/page.tsx diff --git a/apps/tangle-dapp/app/restake/_layout.tsx b/apps/tangle-dapp/app/restake/layout.tsx similarity index 100% rename from apps/tangle-dapp/app/restake/_layout.tsx rename to apps/tangle-dapp/app/restake/layout.tsx diff --git a/apps/tangle-dapp/app/restake/page.tsx b/apps/tangle-dapp/app/restake/page.tsx new file mode 100644 index 000000000..3fe6ffbe9 --- /dev/null +++ b/apps/tangle-dapp/app/restake/page.tsx @@ -0,0 +1,5 @@ +export const dynamic = 'force-static'; + +export default function RestakePage() { + return