Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxknivets committed Oct 17, 2024
1 parent 9e81aab commit de1cab0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const ERROR_SCREEN_STYLES: ChakraProps = {
};

function MyApp({ Component, pageProps }: AppPropsWithLayout) {

useLoadFeatures();
useNotifyOnNavigation();

Expand All @@ -55,11 +54,14 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {

const getLayout = Component.getLayout ?? ((page) => <Layout>{ page }</Layout>);
const isUnderMaintenance = true;

if (isUnderMaintenance) {
return <div>Under Maintenance</div>;
}

return (
<>
{ isUnderMaintenance ? <div>Under Maintenance</div>: (
<ChakraProvider cookies={ pageProps.cookies }>
<AppErrorBoundary
<ChakraProvider cookies={ pageProps.cookies }>
<AppErrorBoundary
{ ...ERROR_SCREEN_STYLES }
onError={ handleError }
>
Expand All @@ -82,8 +84,6 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
</Web3ModalProvider>
</AppErrorBoundary>
</ChakraProvider>
)}
</>
);
}

Expand Down

0 comments on commit de1cab0

Please sign in to comment.