feat(App.tsx): add support for displaying header component on all pages except login and signup pages to improve user experience
This commit is contained in:
parent
33944e5baf
commit
f7fdc5d7bc
1 changed files with 2 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ export default function App() {
|
|||
|
||||
const isLoginPage = location.pathname.includes("login");
|
||||
const isAdminPage = location.pathname.includes("admin");
|
||||
const isSignUpPage = location.pathname.includes("signup");
|
||||
|
||||
// Use effect hook to update alertsList when a new alert is added
|
||||
useEffect(() => {
|
||||
|
|
@ -136,7 +137,7 @@ export default function App() {
|
|||
}}
|
||||
FallbackComponent={CrashErrorComponent}
|
||||
>
|
||||
{!isLoginPage && <Header />}
|
||||
{!isLoginPage && !isSignUpPage && <Header />}
|
||||
<Router />
|
||||
</ErrorBoundary>
|
||||
<div></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue