Skip to content

Commit

Permalink
rebase(footer): rebase from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklile-Yilma authored and Endalebob committed Jun 27, 2023
1 parent aac683e commit f9508f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ const Footer: React.FC = () => {

const [hideNav, setHideNav] = useState<Boolean>(false);

console.log(asPath);
useEffect(() => {
// remove navbar from pages certain pages
if (["/auth/signin", "/auth/signup"].includes(asPath)) {
setHideNav(true);
} else {
setHideNav(false);
}
}, []);
}, [asPath]);

return (
<div
Expand Down

0 comments on commit f9508f6

Please sign in to comment.