From 6546d0e49672dd1d2ff66978c0aa42f066733520 Mon Sep 17 00:00:00 2001 From: Bart Date: Sun, 21 Jan 2024 20:23:53 +0100 Subject: [PATCH 1/3] add basic interact page --- app/(platform)/[contractId]/interact/page.tsx | 36 + components/AccountSideBar.tsx | 21 +- components/UserNav.tsx | 24 +- components/pages/ContractPageLayout.tsx | 10 +- hooks/useNetwork.tsx | 10 +- package-lock.json | 12207 +++++++++++++++- package.json | 2 +- 7 files changed, 12272 insertions(+), 38 deletions(-) create mode 100644 app/(platform)/[contractId]/interact/page.tsx diff --git a/app/(platform)/[contractId]/interact/page.tsx b/app/(platform)/[contractId]/interact/page.tsx new file mode 100644 index 0000000..fe25c07 --- /dev/null +++ b/app/(platform)/[contractId]/interact/page.tsx @@ -0,0 +1,36 @@ +"use client"; +import {useCurrentNetwork} from "@/hooks/useNetwork"; +import Loading from "@/components/ui/Loading"; + +export default function InteractPage() { + const currentNetwork = useCurrentNetwork(); + + if (currentNetwork === null) { + return ( +
+ +
+ ) + } + + return ( +