Skip to content

Commit f2b0d8c

Browse files
committed
disable MaintenanceBanner
1 parent 99ac894 commit f2b0d8c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/App.tsx

+17-17
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { Global, MantineEmotionProvider, emotionTransform } from '@mantine/emoti
2323
import { emotionCache } from './emotion'
2424

2525
const ENV = process.env.REACT_APP_ENV
26-
const maintenanceStart = Date.UTC(2024, 9, 4, 7, 45)
27-
const maintenanceEnd = Date.UTC(2024, 9, 4, 8, 45)
26+
// const maintenanceStart = Date.UTC(2024, 9, 4, 7, 45)
27+
// const maintenanceEnd = Date.UTC(2024, 9, 4, 8, 45)
2828

2929
function GlobalStyles() {
3030
return (
@@ -52,20 +52,20 @@ const EnvBanner = () => (
5252
</Progress.Root>
5353
)
5454

55-
const MaintenanceBanner = () => (
56-
<Progress.Root
57-
radius="xs"
58-
size={30}
59-
style={{ zIndex: 42069, opacity: 0.5, position: 'fixed', top: 0, left: 0, right: 0 }}
60-
>
61-
<Progress.Section value={100} color="warning">
62-
<Progress.Label>
63-
Planned maintenance in progress {new Date(maintenanceStart).toLocaleString()} -{' '}
64-
{new Date(maintenanceEnd).toLocaleTimeString()} (Errors may occur)
65-
</Progress.Label>
66-
</Progress.Section>
67-
</Progress.Root>
68-
)
55+
// const MaintenanceBanner = () => (
56+
// <Progress.Root
57+
// radius="xs"
58+
// size={30}
59+
// style={{ zIndex: 42069, opacity: 0.5, position: 'fixed', top: 0, left: 0, right: 0 }}
60+
// >
61+
// <Progress.Section value={100} color="warning">
62+
// <Progress.Label>
63+
// Planned maintenance in progress {new Date(maintenanceStart).toLocaleString()} -{' '}
64+
// {new Date(maintenanceEnd).toLocaleTimeString()} (Errors may occur)
65+
// </Progress.Label>
66+
// </Progress.Section>
67+
// </Progress.Root>
68+
// )
6969

7070
const resolver: CSSVariablesResolver = (theme) => ({
7171
variables: {
@@ -97,7 +97,7 @@ function App() {
9797
<GlobalStyles />
9898
<Notifications />
9999
{ENV && <EnvBanner />}
100-
<MaintenanceBanner />
100+
{/* <MaintenanceBanner /> */}
101101
<RouterProvider router={router} />
102102
</ModalsProvider>
103103
</MantineProvider>

0 commit comments

Comments
 (0)