Skip to content

Commit

Permalink
fix : gnb 예외처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jan 16, 2025
1 parent 98a232f commit a6d2914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/GnbWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const GnbWrapper = () => {
const [isGnbHidden, setIsGnbHidden] = useState(false);
useEffect(() => {
const checkIfGnbShouldBeHidden = () => {
const pathsToHideGnb = ['/signup', '/sign', '/find', '/login', '/quiz'];
const pathsToHideGnb = ['/signup', '/sign', '/find', '/detail', '/login', '/quiz'];
const shouldHideGnb = pathsToHideGnb.some((path) => pathname.includes(path));
setIsGnbHidden(shouldHideGnb);
};
Expand Down

0 comments on commit a6d2914

Please sign in to comment.