-
Notifications
You must be signed in to change notification settings - Fork 3
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
#136 about us navigation #168
Conversation
{ | ||
id: "pnl3", | ||
title: "Про нас", | ||
link: "/#about-us", |
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.
no need to add /
before anchor
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.
This is the anchor for the main page section and without slash it tries to find the anchor on the other page. So this slash is necessary since we need to have this functionality working from any place.
</div> | ||
<div className={css["navigation-content-section"]}> | ||
{SERVICES_LINKS.map((element) => ( | ||
<a |
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.
Since we use react router for the entire app, its better to use Link
from the react-router
to utilize full power of SPA
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.
As far as I know, Link
doesn't support anchor links. That's why I decided to use HashLink
.
}, | ||
{ | ||
id: "m3", | ||
title: "Про нас", | ||
link: "#" | ||
link: "/#about-us" |
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.
same no need to put /
with #hash-fragment
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.
LGTM! Added few minor comments
User story:
As a user,
I want to review the information about platform
So that I understand what this platform offers and if I am interested in it.
Given I am on the platform
When I click on 'Про нас' button
Then I am redirected to 'Про нас' section on the main page