From 4204e5196ed09c3f09c396bbd509ea75d5f46ae6 Mon Sep 17 00:00:00 2001 From: port <108868128+portdeveloper@users.noreply.github.com> Date: Mon, 8 Apr 2024 10:13:24 +0300 Subject: [PATCH] Remove unused import + type in index.tsx and [network].tsx files --- packages/nextjs/pages/[contractAddress]/[network].tsx | 4 +--- packages/nextjs/pages/index.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/nextjs/pages/[contractAddress]/[network].tsx b/packages/nextjs/pages/[contractAddress]/[network].tsx index 8495c61f..0f3240f1 100644 --- a/packages/nextjs/pages/[contractAddress]/[network].tsx +++ b/packages/nextjs/pages/[contractAddress]/[network].tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from "react"; import Link from "next/link"; import { useRouter } from "next/router"; import { ParsedUrlQuery } from "querystring"; -import { Abi, extractChain, isAddress } from "viem"; +import { Abi, isAddress } from "viem"; import * as chains from "viem/chains"; import { usePublicClient } from "wagmi"; import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; @@ -23,8 +23,6 @@ type ContractData = { address: string; }; -type AllowedNetwork = (typeof scaffoldConfig.targetNetworks)[number]["id"]; - const ContractDetailPage = () => { const router = useRouter(); const { contractAddress, network } = router.query as ParsedQueryContractDetailsPage; diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index c69fdf7e..c6fac2d4 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -3,7 +3,7 @@ import Image from "next/image"; import Link from "next/link"; import { useRouter } from "next/router"; import type { NextPage } from "next"; -import { Address, extractChain, isAddress } from "viem"; +import { Address, isAddress } from "viem"; import { usePublicClient } from "wagmi"; import { MetaHeader } from "~~/components/MetaHeader"; import { MiniFooter } from "~~/components/MiniFooter"; @@ -19,8 +19,6 @@ enum TabName { addressAbi, } -type AllowedNetwork = (typeof scaffoldConfig.targetNetworks)[number]["id"]; - const tabValues = Object.values(TabName) as TabName[]; const networks = getTargetNetworks();