Skip to content
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

Merged
merged 8 commits into from
Aug 21, 2024
Merged

OV-11: Header component #25

merged 8 commits into from
Aug 21, 2024

Conversation

sergiy4
Copy link
Collaborator

@sergiy4 sergiy4 commented Aug 20, 2024

This PR adds the Header component.
image
image

@sergiy4 sergiy4 added the FE Fronted feature label Aug 20, 2024
@sergiy4 sergiy4 added this to the Release 1.0 milestone Aug 20, 2024
@sergiy4 sergiy4 self-assigned this Aug 20, 2024
@sergiy4 sergiy4 linked an issue Aug 20, 2024 that may be closed by this pull request
3 tasks
@@ -27,6 +31,7 @@ const App: React.FC = () => {

return (
<>
<Header />
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator Author

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

o-nedashkivska
o-nedashkivska previously approved these changes Aug 20, 2024
Copy link
Collaborator

@nikita-remeslov nikita-remeslov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check my comments

Comment on lines 34 to 38
{pathname === AppRoute.SIGN_UP ||
pathname === AppRoute.SIGN_IN ? null : (
<Header />
)}

Copy link
Collaborator

@anton-otroshchenko anton-otroshchenko Aug 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{pathname === AppRoute.SIGN_UP ||
pathname === AppRoute.SIGN_IN ? null : (
<Header />
)}
{(pathname !== AppRoute.SIGN_UP &&
pathname !== AppRoute.SIGN_IN) && (
<Header />
)}

o-nedashkivska
o-nedashkivska previously approved these changes Aug 20, 2024
@nikita-remeslov nikita-remeslov merged commit a9f040c into next Aug 21, 2024
2 checks passed
@nikita-remeslov nikita-remeslov deleted the task/OV-11-add-header branch August 21, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE Fronted feature
Projects
Status: To Be Tested
Development

Successfully merging this pull request may close these issues.

FEAT: Header component
5 participants