From 120f504b3bf4061ef9b174437b789d5e4bff7423 Mon Sep 17 00:00:00 2001 From: RedBeardEth <90423049+RedBeardEth@users.noreply.github.com> Date: Thu, 21 Dec 2023 08:31:40 +1100 Subject: [PATCH] remove GT mint --- apps/nextjs/src/app/collection/[id]/(list)/layout.tsx | 7 ++++--- apps/nextjs/src/app/collection/[id]/(list)/page.tsx | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/nextjs/src/app/collection/[id]/(list)/layout.tsx b/apps/nextjs/src/app/collection/[id]/(list)/layout.tsx index c919b991..ff2215d7 100644 --- a/apps/nextjs/src/app/collection/[id]/(list)/layout.tsx +++ b/apps/nextjs/src/app/collection/[id]/(list)/layout.tsx @@ -1,6 +1,6 @@ +import type { erc721Tokens } from "@/constants"; import React from "react"; import CollectionSummary from "@/app/collection/CollectionSummary"; -import type { erc721Tokens } from "@/constants"; import { NETWORK_NAME } from "@/constants/env"; import { getTokenContractAddresses } from "@/utils/utils"; @@ -35,12 +35,12 @@ export default function RootLayout({ link: isMintable ? "trade" : "", }, ]; - if (isMintable) { + /*if (isMintable) { tabs.unshift({ name: "Mint", link: "", }); - } + }*/ if (params.id == "realms") { tabs.push( { name: "Analytics", link: "analytics" }, @@ -70,6 +70,7 @@ export default function RootLayout({ className="hover:text-flamingo/70" size={"sm"} exact + disabled={true} href={`/collection/${params.id}${tab.link && "/" + tab.link}`} > {tab.name} diff --git a/apps/nextjs/src/app/collection/[id]/(list)/page.tsx b/apps/nextjs/src/app/collection/[id]/(list)/page.tsx index 200654c8..04c62541 100644 --- a/apps/nextjs/src/app/collection/[id]/(list)/page.tsx +++ b/apps/nextjs/src/app/collection/[id]/(list)/page.tsx @@ -1,10 +1,10 @@ +import type { Collection } from "@/types"; import type { Metadata } from "next"; import { erc721Tokens } from "@/constants"; import { NETWORK_NAME } from "@/constants/env"; import { getAttributes } from "@/lib/reservoir/getAttributes"; import { getCollections } from "@/lib/reservoir/getCollections"; import { getToken } from "@/lib/reservoir/getToken"; -import type { Collection } from "@/types"; import { getTokenContractAddresses } from "@/utils/utils"; import Mint from "./Mint"; @@ -40,14 +40,14 @@ export default async function Page({ page?: string; }; }) { - const isGoerliGoldenToken = + /*const isGoerliGoldenToken = NETWORK_NAME == "GOERLI" && (params.id == getTokenContractAddresses("goldenToken").L2 || params.id == "goldenToken"); if (isGoerliGoldenToken) { return ; - } + }*/ return (