Skip to content

Commit 1a7f7cb

Browse files
committed
updated to show links
1 parent 3cc27b6 commit 1a7f7cb

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

apps/dashboard/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/// <reference types="next/navigation-types/compat/navigation" />
44

55
// NOTE: This file should not be edited
6-
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
6+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/data-table.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
showSuperchainBridgeFieldset,
3232
} from "components/contract-components/contract-deploy-form/modular-contract-default-modules-fieldset";
3333
import { useTxNotifications } from "hooks/useTxNotifications";
34+
import Link from "next/link";
3435
import {
3536
ZERO_ADDRESS,
3637
defineChain,
@@ -87,6 +88,20 @@ export function DataTable({
8788
{
8889
accessorKey: "network",
8990
header: "Network",
91+
cell: ({ row }) => {
92+
if (row.getValue("status") === "DEPLOYED") {
93+
return (
94+
<Link
95+
target="_blank"
96+
className="text-blue-500 underline"
97+
href={`/${row.getValue("chainId")}/${coreContract.address}`}
98+
>
99+
{row.getValue("network")}
100+
</Link>
101+
);
102+
}
103+
return row.getValue("network");
104+
},
90105
},
91106
{
92107
accessorKey: "chainId",

0 commit comments

Comments
 (0)