diff --git a/app/address/[address]/program-multisig/page-client.tsx b/app/address/[address]/program-multisig/page-client.tsx index 329b0b9c..8e26f100 100644 --- a/app/address/[address]/program-multisig/page-client.tsx +++ b/app/address/[address]/program-multisig/page-client.tsx @@ -11,7 +11,6 @@ type Props = Readonly<{ }; }>; - function ProgramMultisigCardRenderer({ account, onNotFound, diff --git a/app/components/account/UpgradeableLoaderAccountSection.tsx b/app/components/account/UpgradeableLoaderAccountSection.tsx index a2e9c72b..5c4b2af5 100644 --- a/app/components/account/UpgradeableLoaderAccountSection.tsx +++ b/app/components/account/UpgradeableLoaderAccountSection.tsx @@ -148,12 +148,10 @@ export function UpgradeableProgramSection({ {cluster == Cluster.MainnetBeta && squadMapInfo?.isSquad ? ( - ): null} + ) : null}
- {/* Squads Multisig reverse map info is only available on mainnet */} - {/* : <>*/} )} @@ -174,7 +172,6 @@ function MultisigBadge({ pubkey }: { pubkey: PublicKey }) { ); } - function SecurityLabel() { return ( diff --git a/app/providers/squadsMultisig.tsx b/app/providers/squadsMultisig.tsx index 9ebad89f..724f07cf 100644 --- a/app/providers/squadsMultisig.tsx +++ b/app/providers/squadsMultisig.tsx @@ -1,7 +1,7 @@ -import { Program } from "@coral-xyz/anchor"; -import { PublicKey } from "@solana/web3.js"; -import { Cluster } from "@utils/cluster"; -import useSWRImmutable from "swr/immutable"; +import { Program } from '@coral-xyz/anchor'; +import { PublicKey } from '@solana/web3.js'; +import { Cluster } from '@utils/cluster'; +import useSWRImmutable from 'swr/immutable'; export const SQUADS_V3_ADDRESS = 'SMPLecH534NA9acpos4G6x7uf3LWbCAwZQE9e8ZekMu'; export const SQUADS_V4_ADDRESS = 'SQDS4ep65T869zMMBKyuUq6aD6EgTu8psMjkvj52pCf'; @@ -18,6 +18,7 @@ export type MinimalMultisigInfo = const SQUADS_MAP_URL = 'https://4fnetmviidiqkjzenwxe66vgoa0soerr.lambda-url.us-east-1.on.aws/isSquadV2'; +// Squads Multisig reverse map info is only available on mainnet export function useSquadsMultisigLookup(programAuthority: PublicKey | null | undefined, cluster: Cluster) { return useSWRImmutable( ['squadsReverseMap', programAuthority?.toString(), cluster], @@ -65,4 +66,4 @@ export function useSquadsMultisig( } } ); -} \ No newline at end of file +}