-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OV-11: Header component #25
Conversation
frontend/src/app/app.tsx
Outdated
@@ -27,6 +31,7 @@ const App: React.FC = () => { | |||
|
|||
return ( | |||
<> | |||
<Header /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, we should hide header when the path is /sign-in or /sign-up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but I guess this functionality is for another task because I didn't have this in my task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header should be only on internal pages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because you add header to the root app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check my comments
617444e
frontend/src/app/app.tsx
Outdated
{pathname === AppRoute.SIGN_UP || | ||
pathname === AppRoute.SIGN_IN ? null : ( | ||
<Header /> | ||
)} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{pathname === AppRoute.SIGN_UP || | |
pathname === AppRoute.SIGN_IN ? null : ( | |
<Header /> | |
)} | |
{(pathname !== AppRoute.SIGN_UP && | |
pathname !== AppRoute.SIGN_IN) && ( | |
<Header /> | |
)} | |
This PR adds the Header component.