Skip to content

Commit

Permalink
fix: toast
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Oct 26, 2023
1 parent 80fab9c commit 7278eae
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ const WithLayout = memo(function WithLayout(props: AppProps): ReactElement {
** Otherwise, it returns a div with a spinner icon and a message indicating that the data points
** are being updated.
**************************************************************************************************/
// eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
function NetworkStatusIndicator(): ReactElement {
const {safeChainID} = useChainID();
const isMounted = useIsMounted();
Expand Down Expand Up @@ -230,23 +231,20 @@ const App = memo(function App(props: AppProps): ReactElement {
const {manifest} = useCurrentApp(router);

return (
<>
<MenuContextApp>
<YearnContextApp>
<WalletContextApp>
<Fragment>
<Meta meta={manifest} />
<WithLayout
Component={Component}
pageProps={pageProps}
router={props.router}
/>
</Fragment>
</WalletContextApp>
</YearnContextApp>
</MenuContextApp>
<NetworkStatusIndicator />
</>
<MenuContextApp>
<YearnContextApp>
<WalletContextApp>
<Fragment>
<Meta meta={manifest} />
<WithLayout
Component={Component}
pageProps={pageProps}
router={props.router}
/>
</Fragment>
</WalletContextApp>
</YearnContextApp>
</MenuContextApp>
);
});

Expand Down

0 comments on commit 7278eae

Please sign in to comment.