Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Storybook] Create mock for react-router-dom #1066

Open
christopherlim98 opened this issue Jan 3, 2022 · 0 comments
Open

[Storybook] Create mock for react-router-dom #1066

christopherlim98 opened this issue Jan 3, 2022 · 0 comments

Comments

@christopherlim98
Copy link
Contributor

  • Find a way to mock navigation (some buttons will navigate on click, e.g. OptionsSideMenu)
  • Find a way to mock useParams (some components rely on useParams hook to render correctly e.g. Post page, but useParams does not work with storybook out-of-the-box)
@christopherlim98 christopherlim98 changed the title Storybook: create mock for react-router-dom [Storybook] create mock for react-router-dom Jan 3, 2022
@christopherlim98 christopherlim98 changed the title [Storybook] create mock for react-router-dom [Storybook] Create mock for react-router-dom Jan 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant