Skip to content

Commit e130875

Browse files
author
dschlabach
committed
Merge branch 'main' into dms/linking
2 parents 16b94f1 + 766712c commit e130875

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

playground/nextjs-app-router/components/AppProvider.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { createContext, useEffect, useState } from 'react';
1616
import { base } from 'wagmi/chains';
1717

1818
type State = {
19-
isInitialized: boolean;
2019
activeComponent?: OnchainKitComponent;
2120
setActiveComponent?: (component: OnchainKitComponent) => void;
2221
chainId?: number;
@@ -42,7 +41,6 @@ type State = {
4241
};
4342

4443
export const defaultState: State = {
45-
isInitialized: false,
4644
activeComponent: OnchainKitComponent.Transaction,
4745
chainId: base.id,
4846
componentTheme: 'default',
@@ -56,8 +54,6 @@ export const defaultState: State = {
5654
export const AppContext = createContext(defaultState);
5755

5856
export const AppProvider = ({ children }: { children: React.ReactNode }) => {
59-
const [isInitialized, setIsInitialized] = useState(false);
60-
6157
const [activeComponent, setActiveComponent] =
6258
useStateWithStorage<OnchainKitComponent>({
6359
key: 'activeComponent',

0 commit comments

Comments
 (0)