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

Replaced href with Router link #202

Closed
wants to merge 1 commit into from
Closed

Replaced href with Router link #202

wants to merge 1 commit into from

Conversation

adamalexandru4
Copy link

#181 Solved the issue. I hope that I understood correctly the request.

Replaced the "" tag with react-router functionality "".
Changed also the example in StoryBook.

@vercel
Copy link

vercel bot commented Sep 30, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/code4romania/taskforce-fe-components/2w9tg0dl7
✅ Preview: https://taskforce-fe-components-git-fork-adamalexandru4-router-link.code4romania.vercel.app

Copy link
Member

@Utwo Utwo left a comment

Choose a reason for hiding this comment

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

I realized that this component is used both for external links and for internal links. Maybe we should have a prop that set the link as external (a href="..") or internal (react-router). I'm also open to other suggestions :)

@@ -9,6 +9,7 @@
"echarts": "^4.8.0",
"echarts-for-react": "^2.0.16",
"react-datepicker": "^3.1.3",
"react-router-dom": "^5.2.0",
Copy link
Member

Choose a reason for hiding this comment

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

We should have this as a peerDependencie

This pull request was closed.
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.

3 participants