From a12cb4da7d32dc35914cb9d1b8e1ef05789126a2 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Thu, 31 Jul 2025 21:25:42 +0800 Subject: [PATCH] update check page --- src/layout/MainLayout/index.js | 36 +++++++----- .../extra-pages/DatabaseHealthCheck/index.js | 56 ++----------------- src/utils/ApiPathConst.js | 1 + 3 files changed, 29 insertions(+), 64 deletions(-) diff --git a/src/layout/MainLayout/index.js b/src/layout/MainLayout/index.js index 5e0b641..c8c21d1 100644 --- a/src/layout/MainLayout/index.js +++ b/src/layout/MainLayout/index.js @@ -1,6 +1,7 @@ import { useEffect, useState } from 'react'; import { Outlet } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; +import { useLocation } from 'react-router-dom'; // material-ui import { useTheme } from '@mui/material/styles'; @@ -31,7 +32,8 @@ const MainLayout = () => { const theme = useTheme(); const matchDownLG = useMediaQuery(theme.breakpoints.down('lg')); const dispatch = useDispatch(); - + const location = useLocation(); + const hideNavbarRoutes = ['/databaseHealthCheck'] const { drawerOpen } = useSelector((state) => state.menu); // drawer toggler @@ -55,18 +57,26 @@ const MainLayout = () => { }, [drawerOpen]); return ( - -
- {/* */} - - {/* */} - {/* */} - - - -