Fix : Menu shouldn't be displayed on logged out pages (#11437)

#11414 
Conditionally render MobileNavigationBar based on user authentication
status
- Added useIsLogged hook to check if the user is authenticated.
- Updated MobileNavigationBar component to render only when the user is
logged in.
![Screenshot from 2025-04-08
12-33-04](https://github.com/user-attachments/assets/1b58a5ac-e5ff-418f-a903-b952f37db84d)

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Vaibhav Devere
2025-04-08 15:24:21 +05:30
committed by GitHub
parent 17474a0e1e
commit 6611fbf9ac
3 changed files with 4 additions and 5 deletions

View File

@ -122,7 +122,7 @@ export const DefaultLayout = () => {
</StyledMainContainer>
)}
</StyledPageContainer>
{isMobile && <MobileNavigationBar />}
{isMobile && !showAuthModal && <MobileNavigationBar />}
</AppErrorBoundary>
</StyledLayout>
</>