diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index b214988..5e44882 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -5,6 +5,7 @@ import { useRouter } from 'next/router' // import BrandText from 'public/brand/brand-text.svg' import { footerLinks, socialsLinks } from 'utils/links' +import { BASE_FACTORY_ADDRESS } from '../utils/constants' import { SidebarLayout } from './SidebarLayout' import { WalletLoader } from './WalletLoader' @@ -24,6 +25,11 @@ export const Sidebar = () => { const router = useRouter() const wallet = useWallet() + let tempRoutes = routes + if (BASE_FACTORY_ADDRESS === undefined) { + tempRoutes = routes.filter((route) => route.href !== '/contracts/baseMinter/') + } + return ( {/* Stargaze brand as home button */} @@ -34,7 +40,7 @@ export const Sidebar = () => { {/* wallet button */} {/* main navigation routes */} - {routes.map(({ text, href, isChild }) => ( + {tempRoutes.map(({ text, href, isChild }) => ( { -
-
+ + {/* To be removed */} + +
+ + + {/* /To be removed */} +
- -
-
- +
+
-

Base Minter

- Base Minter contract enables 1/1 minting - + +
-
+ {minterType === 'base' && (
diff --git a/pages/contracts/index.tsx b/pages/contracts/index.tsx index 0991421..685a190 100644 --- a/pages/contracts/index.tsx +++ b/pages/contracts/index.tsx @@ -1,8 +1,11 @@ +import { Conditional } from 'components/Conditional' import { HomeCard } from 'components/HomeCard' import type { NextPage } from 'next' // import Brand from 'public/brand/brand.svg' import { withMetadata } from 'utils/layout' +import { BASE_FACTORY_ADDRESS } from '../../utils/constants' + const HomePage: NextPage = () => { return (
@@ -20,13 +23,15 @@ const HomePage: NextPage = () => {
- - Execute messages and run queries on Stargaze's Base Minter contract. - + + + Execute messages and run queries on Stargaze's Base Minter contract. + +