diff --git a/apps/dashboard/src/app/team/[team_slug]/[project_slug]/contracts/DeployedContractsPageHeader.tsx b/apps/dashboard/src/app/team/[team_slug]/[project_slug]/contracts/DeployedContractsPageHeader.tsx index 7949da8aa89..06dccfb4a3e 100644 --- a/apps/dashboard/src/app/team/[team_slug]/[project_slug]/contracts/DeployedContractsPageHeader.tsx +++ b/apps/dashboard/src/app/team/[team_slug]/[project_slug]/contracts/DeployedContractsPageHeader.tsx @@ -1,9 +1,9 @@ "use client"; +import { Button } from "@/components/ui/button"; import { DownloadIcon, PlusIcon } from "lucide-react"; import Link from "next/link"; import { useState } from "react"; -import { Button } from "../../../../../@/components/ui/button"; import { ImportModal } from "../../../../../components/contract-components/import-contract/modal"; export function DeployedContractsPageHeader() { diff --git a/apps/dashboard/src/components/contract-components/tables/cells.tsx b/apps/dashboard/src/components/contract-components/tables/cells.tsx index 681cfda43c1..ede9af98863 100644 --- a/apps/dashboard/src/components/contract-components/tables/cells.tsx +++ b/apps/dashboard/src/components/contract-components/tables/cells.tsx @@ -3,6 +3,7 @@ import { Badge } from "@/components/ui/badge"; import { SkeletonContainer } from "@/components/ui/skeleton"; import { useThirdwebClient } from "@/constants/thirdweb.client"; +import { cn } from "@/lib/utils"; import { useDashboardContractMetadata } from "@3rdweb-sdk/react/hooks/useDashboardContractMetadata"; import type { BasicContract } from "contract-ui/types/types"; import { useChainSlug } from "hooks/chains/chainSlug"; @@ -16,13 +17,14 @@ import { usePublishedContractsFromDeploy } from "../hooks"; interface AsyncContractNameCellProps { cell: BasicContract; + linkOverlay?: boolean; } // The row components for the contract table, in the page // url: /dashboard/contracts/deploy export const AsyncContractNameCell = memo( - ({ cell }: AsyncContractNameCellProps) => { + ({ cell, linkOverlay }: AsyncContractNameCellProps) => { const chainSlug = useChainSlug(cell.chainId); const chain = useV5DashboardChain(cell.chainId); const client = useThirdwebClient(); @@ -46,7 +48,10 @@ export const AsyncContractNameCell = memo( {v || shortenIfAddress(cell.address)} diff --git a/apps/dashboard/src/components/contract-components/tables/deployed-contracts.tsx b/apps/dashboard/src/components/contract-components/tables/deployed-contracts.tsx index 331f94760e8..da003e56089 100644 --- a/apps/dashboard/src/components/contract-components/tables/deployed-contracts.tsx +++ b/apps/dashboard/src/components/contract-components/tables/deployed-contracts.tsx @@ -19,7 +19,6 @@ import { TableHeader, TableRow, } from "@/components/ui/table"; -import { useDashboardRouter } from "@/lib/DashboardRouter"; import { type useAllContractList, useRemoveContractMutation, @@ -38,7 +37,6 @@ import { useTable, } from "react-table"; import { useAllChainsData } from "../../../hooks/chains/allChains"; -import { useChainSlug } from "../../../hooks/chains/chainSlug"; import { AsyncContractNameCell, AsyncContractTypeCell } from "./cells"; import { ShowMoreButton } from "./show-more-button"; @@ -174,7 +172,7 @@ const ContractTable: React.FC = ({ accessor: (row) => row.address, // biome-ignore lint/suspicious/noExplicitAny: FIXME Cell: (cell: any) => { - return ; + return ; }, }, { @@ -231,6 +229,7 @@ const ContractTable: React.FC = ({ copyIconPosition="left" address={cell.row.original.address} variant="ghost" + className="relative z-10" /> ); }, @@ -245,6 +244,7 @@ const ContractTable: React.FC = ({