Skip to content

Commit

Permalink
fix(dapp): remove Web3Context refs
Browse files Browse the repository at this point in the history
  • Loading branch information
moconnell committed Dec 22, 2023
1 parent 76b3403 commit 1180692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions packages/dapp/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Global } from '@emotion/react';
import { RainbowKitProvider } from '@rainbow-me/rainbowkit';

import { ErrorBoundary } from '../components/ErrorBoundary';
import { Web3ContextProvider } from '../context/Web3Context';
import { Layout } from '../shared/Layout';
import { globalStyles, theme } from '../theme';
import { chains, wagmiConfig } from '../utils/web3';
Expand All @@ -27,11 +26,9 @@ const App = ({ Component, pageProps }: AppProps) => {
<CSSReset />
<Global styles={globalStyles} />
<ErrorBoundary>
<Web3ContextProvider>
<Layout>
<Component {...pageProps} />
</Layout>
</Web3ContextProvider>
<Layout>
<Component {...pageProps} />
</Layout>
</ErrorBoundary>
</ChakraProvider>
</RainbowKitProvider>
Expand Down
4 changes: 2 additions & 2 deletions packages/dapp/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
useBreakpointValue,
} from '@chakra-ui/react';

import { useWeb3 } from '../context/Web3Context';
import { logError } from '../utils/helpers';
import { useAccount } from 'wagmi';

function Home() {
const { account } = useWeb3();
const account = useAccount();

const router = useRouter();
const [isMobile, onMobile] = useState(false);
Expand Down

0 comments on commit 1180692

Please # to comment.