update: combine menu and sidebar paths
This commit is contained in:
@@ -11,7 +11,7 @@ import { makeRouter } from "./routes/routes";
|
|||||||
import { useDarkMode } from "./hooks/useDarkMode";
|
import { useDarkMode } from "./hooks/useDarkMode";
|
||||||
import { ItemWithSubItems } from "./types/userPermissions";
|
import { ItemWithSubItems } from "./types/userPermissions";
|
||||||
import { useFetchProfile } from "./hooks/useFetchProfile";
|
import { useFetchProfile } from "./hooks/useFetchProfile";
|
||||||
import { getInspectionMenuItems } from "./screen/SideBar";
|
import { getInspectionMenuItems } from "./config/menuItems";
|
||||||
|
|
||||||
const versionNumber = "/src/version.txt";
|
const versionNumber = "/src/version.txt";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
@@ -127,7 +127,7 @@ export default function App() {
|
|||||||
window.history.replaceState(
|
window.history.replaceState(
|
||||||
{},
|
{},
|
||||||
document.title,
|
document.title,
|
||||||
url.pathname + url.search
|
url.pathname + url.search,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user