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

React router cleanup #626

Closed
pi0neerpat opened this issue Jul 10, 2024 · 0 comments · Fixed by #602
Closed

React router cleanup #626

pi0neerpat opened this issue Jul 10, 2024 · 0 comments · Fixed by #602
Assignees
Labels

Comments

@pi0neerpat
Copy link
Member

pi0neerpat commented Jul 10, 2024

In #602, update the way we handle path variables to use consistent method: useMatch or useParams

Docs: https://reactrouter.com/en/main/hooks/use-params
https://reactrouter.com/en/main/start/overview

  • In VaultDetails: const safeId = props.match.params.id as string
  • In EarnDetails
  • Elsewhere that path is being read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants