diff --git a/packages/nextjs/app/debug/_components/contract/ModuleResource.tsx b/packages/nextjs/app/debug/_components/contract/ModuleResource.tsx index cad9adf..5fe8749 100644 --- a/packages/nextjs/app/debug/_components/contract/ModuleResource.tsx +++ b/packages/nextjs/app/debug/_components/contract/ModuleResource.tsx @@ -11,8 +11,7 @@ type ModuleResourceProps = { const GROUP_ARRAYS_AFTER_LENGTH = 100; const COLLAPSE_STRINGS_AFTER_LENGTH = 80; -const MAX_CARD_HEIGHT = 500; - + export const ModuleResource = ({ key, resource, @@ -25,6 +24,7 @@ export const ModuleResource = ({ <>
{resource.type}
; }) => { - if (!deployedContractData || deployedContractData.abi === undefined) { - return null; - } - const {isLoading, data, error} = useGetAccountResources(deployedContractData.abi!.address); - - const [accountResources, setAccountResources] = - useState(null); - + if (error) { + return <>Cannot fetch resources. + {error.type &&

Error: {error.type}

} + {error.message &&

Error message: {error.message}

} + ; + } if (!data?.length) { return <>No resources; diff --git a/packages/nextjs/components/scaffold-move/CustomConnectButton/AddressInfoDropdown.tsx b/packages/nextjs/components/scaffold-move/CustomConnectButton/AddressInfoDropdown.tsx index 365c356..1dea269 100644 --- a/packages/nextjs/components/scaffold-move/CustomConnectButton/AddressInfoDropdown.tsx +++ b/packages/nextjs/components/scaffold-move/CustomConnectButton/AddressInfoDropdown.tsx @@ -44,7 +44,7 @@ export const AddressInfoDropdown = ({ useOutsideClick(dropdownRef, closeDropdown); - const { disconnect, wallet } = useWallet(); + const { disconnect } = useWallet(); return ( <>
diff --git a/packages/nextjs/components/scaffold-move/CustomConnectButton/NetworkOptions.tsx b/packages/nextjs/components/scaffold-move/CustomConnectButton/NetworkOptions.tsx index bf78e94..4078bde 100644 --- a/packages/nextjs/components/scaffold-move/CustomConnectButton/NetworkOptions.tsx +++ b/packages/nextjs/components/scaffold-move/CustomConnectButton/NetworkOptions.tsx @@ -1,4 +1,3 @@ -import { useTheme } from "next-themes"; import { ArrowsRightLeftIcon } from "@heroicons/react/24/solid"; import { getTargetNetworks } from "~~/utils/scaffold-eth"; @@ -10,8 +9,6 @@ type NetworkOptionsProps = { export const NetworkOptions = ({ hidden = false }: NetworkOptionsProps) => { const chain = "devnet"; // TODO: Get this from wallet? - const { resolvedTheme } = useTheme(); - const isDarkMode = resolvedTheme === "dark"; return ( <>