diff --git a/context/ChainsContext/service.tsx b/context/ChainsContext/service.tsx index 360ce36..2be5e35 100644 --- a/context/ChainsContext/service.tsx +++ b/context/ChainsContext/service.tsx @@ -95,8 +95,8 @@ export const getChain = (chains: ChainItems) => { if (typeof window === "undefined") return emptyChain; const rootRoute = location.pathname.split("/")[1]; - // Avoid app from thinking the /create and /api routes are registryNames - const chainNameFromUrl = ["create", "api"].includes(rootRoute) ? "" : rootRoute; + // Avoid app from thinking the /api route is a registryName + const chainNameFromUrl = rootRoute === "api" ? "" : rootRoute; const recentChain = getRecentChainFromStorage(chains); if (!chainNameFromUrl && isChainInfoFilled(recentChain)) { diff --git a/pages/[chainName]/[address]/index.tsx b/pages/[chainName]/[address]/index.tsx index 71c09bd..caf1460 100644 --- a/pages/[chainName]/[address]/index.tsx +++ b/pages/[chainName]/[address]/index.tsx @@ -62,7 +62,7 @@ const Multipage = () => { }, [fetchMultisig, multisigAddress]); return ( - + diff --git a/pages/[chainName]/index.tsx b/pages/[chainName]/index.tsx new file mode 100644 index 0000000..4edf110 --- /dev/null +++ b/pages/[chainName]/index.tsx @@ -0,0 +1,23 @@ +import FindMultisigForm from "@/components/forms/FindMultisigForm"; +import Page from "@/components/layout/Page"; +import StackableContainer from "@/components/layout/StackableContainer"; +import { useChains } from "@/context/ChainsContext"; + +const MultiPage = () => { + const { chain } = useChains(); + + return ( + + + +

+ {chain.chainDisplayName} Multisig Manager +

+
+ +
+
+ ); +}; + +export default MultiPage;