Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 6eecd23

Browse files
Hide switch tools for self service app
1 parent 67dfe41 commit 6eecd23

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/App.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ const App = () => {
4141

4242
// set/remove class for the whole page, to know if sidebar is present or no
4343
useEffect(() => {
44+
if (location.pathname.includes("/self-service")) {
45+
setHideSwitchTools(true);
46+
} else {
47+
setHideSwitchTools(false);
48+
}
4449
if (isSideBarDisabled) {
4550
document.body.classList.add("no-sidebar");
4651
} else {
4752
document.body.classList.remove("no-sidebar");
4853
}
49-
}, [isSideBarDisabled]);
54+
}, [isSideBarDisabled, location.pathname]);
5055

5156
return (
5257
<>

0 commit comments

Comments
 (0)