Skip to content

Commit

Permalink
updated to show links
Browse files Browse the repository at this point in the history
  • Loading branch information
GWSzeto committed Dec 14, 2024
1 parent 3cc27b6 commit 1a7f7cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
showSuperchainBridgeFieldset,
} from "components/contract-components/contract-deploy-form/modular-contract-default-modules-fieldset";
import { useTxNotifications } from "hooks/useTxNotifications";
import Link from "next/link";
import {
ZERO_ADDRESS,
defineChain,
Expand Down Expand Up @@ -87,6 +88,20 @@ export function DataTable({
{
accessorKey: "network",
header: "Network",
cell: ({ row }) => {
if (row.getValue("status") === "DEPLOYED") {
return (
<Link
target="_blank"
className="text-blue-500 underline"
href={`/${row.getValue("chainId")}/${coreContract.address}`}
>
{row.getValue("network")}
</Link>
);
}
return row.getValue("network");
},
},
{
accessorKey: "chainId",
Expand Down

0 comments on commit 1a7f7cb

Please sign in to comment.