diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index ab2d966..459cbc9 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -98,54 +98,57 @@ export const Header = () => { useCallback(() => setIsDrawerOpen(false), []), ); - const [output, setOutput] = useState(); + // const [output, setOutput] = useState(); - useEffect(() => { - if (location?.pathname !== "/") - setOutput( -
-
-
-
, - ); - }, []); + +
+ SE2 logo +
+
+ Ladders.Vision + NFT dev stack +
+ +
    + +
+
+
+ + {/* */} +
+
+ ); + } + return <>{output}; }; diff --git a/packages/nextjs/components/scaffold-nft/RainbowKitCustomConnectButton2/index.tsx b/packages/nextjs/components/scaffold-nft/RainbowKitCustomConnectButton2/index.tsx index bf58ef5..61c4b81 100644 --- a/packages/nextjs/components/scaffold-nft/RainbowKitCustomConnectButton2/index.tsx +++ b/packages/nextjs/components/scaffold-nft/RainbowKitCustomConnectButton2/index.tsx @@ -27,9 +27,8 @@ export const RainbowKitCustomConnectButton2 = () => { {({ account, chain, openConnectModal, mounted }) => { const connected = mounted && account && chain; - const blockExplorerAddressLink = account - ? getBlockExplorerAddressLink(targetNetwork2!, account.address) - : undefined; + const blockExplorerAddressLink = + account && targetNetwork2 ? getBlockExplorerAddressLink(targetNetwork2, account.address) : undefined; return ( <> @@ -42,7 +41,7 @@ export const RainbowKitCustomConnectButton2 = () => { ); } - if (chain.id !== targetNetwork2!.id) { + if (chain.id !== targetNetwork2?.id) { return ; }