Skip to content

Commit

Permalink
Revert "Shutdown notice."
Browse files Browse the repository at this point in the history
This reverts commit 310c368.
  • Loading branch information
0xngmi committed Mar 6, 2022
1 parent 310c368 commit 6b2ed4d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 175 deletions.
3 changes: 0 additions & 3 deletions components/shutdownNotice/package.json

This file was deleted.

32 changes: 0 additions & 32 deletions components/shutdownNotice/shutdownNotice.js

This file was deleted.

130 changes: 0 additions & 130 deletions components/shutdownNotice/shutdownNotice.module.css

This file was deleted.

11 changes: 1 addition & 10 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';

import SnackbarController from '../components/snackbar'
import ShutdownNotice from '../components/shutdownNotice'

import stores from '../stores/index.js'

Expand Down Expand Up @@ -35,19 +34,11 @@ function MyApp({ Component, pageProps }) {
stores.dispatcher.dispatch({ type: CONFIGURE })

This comment has been minimized.

Copy link
@Jaca777

Jaca777 Jul 20, 2023

components/shutdownNotice/shutdownNotice.module.css

This comment has been minimized.

Copy link
@Jaca777

This comment has been minimized.

Copy link
@Jaca777

This comment has been minimized.

Copy link
@Jaca777

This comment has been minimized.

Copy link
@Jaca777
},[]);

const [shutdownNoticeOpen, setShutdownNoticeOpen] = useState(true);
const closeShutdown = () => {
setShutdownNoticeOpen(false)
}

return (
<ThemeProvider theme={ themeConfig }>
<CssBaseline />
<Component {...pageProps} changeTheme={ changeTheme } />
<SnackbarController />
{ shutdownNoticeOpen &&
<ShutdownNotice close={ closeShutdown } />
}
<SnackbarController />
</ThemeProvider>
)
}
Expand Down

0 comments on commit 6b2ed4d

Please sign in to comment.