Skip to content

Commit

Permalink
chore:refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalongcoder0522 committed Jan 6, 2025
1 parent 2790399 commit 344a9bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const Header = () => {
const burgerMenuRef = useRef<HTMLDivElement>(null);

useOutsideClick(
//@ts-expect-error refs are supposed to be null by default
burgerMenuRef,
useCallback(() => setIsDrawerOpen(false), []),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const AddressInfoDropdown = ({
dropdownRef.current?.removeAttribute("open");
};

// @ts-expect-error ref are initialized with null by default
useOutsideClick(dropdownRef, closeDropdown);

function handleConnectBurner(
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/scaffold.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type ScaffoldConfig = {
};

const scaffoldConfig = {
targetNetworks: [chains.devnet],
targetNetworks: [chains.sepolia],
// Only show the Burner Wallet when running on devnet
onlyLocalBurnerWallet: false,
rpcProviderUrl: process.env.NEXT_PUBLIC_PROVIDER_URL || "",
Expand Down

0 comments on commit 344a9bc

Please sign in to comment.