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

#136 about us navigation #168

Merged
merged 2 commits into from
Sep 1, 2023
Merged

#136 about us navigation #168

merged 2 commits into from
Sep 1, 2023

Conversation

Shushunya
Copy link
Collaborator

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

@Shushunya Shushunya self-assigned this Aug 31, 2023
@Shushunya Shushunya linked an issue Aug 31, 2023 that may be closed by this pull request
{
id: "pnl3",
title: "Про нас",
link: "/#about-us",
Copy link
Collaborator

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

Copy link
Collaborator Author

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
Copy link
Collaborator

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

Copy link
Collaborator Author

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"
Copy link
Collaborator

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

Copy link
Collaborator

@popovycholeg popovycholeg left a 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

@Shushunya Shushunya merged commit b8ec89b into develop Sep 1, 2023
@Shushunya Shushunya deleted the #136-About-Us-Navigation branch September 1, 2023 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the functionality of view 'Про нас'.
3 participants