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

PROD-1551 header -> qa #137

Merged
merged 6 commits into from
May 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
PROD-1551_header
  • Loading branch information
brooketopcoder committed May 2, 2022
commit f95082cb21a34a91ea6a1452baa485ca060af388
5 changes: 5 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ const App = () => {
);
const location = useLocation();

// if this is the self-service app, don't display anything
if (!!['/self-service', '/work'].find(path => location.pathname.startsWith(path))) {
return <></>
}

// set/remove class for the whole page, to know if sidebar is present or no
useEffect(() => {
if (isSideBarDisabled) {
Expand Down