Open corwintines opened 1 week ago
@pettinarip I think if we just test just the component from src/components/TableOfContents/index.tsx
with a mobile view (believe we use story modes for this) then we should be good
Also, I added a nice to have possible refactor if it seems simple. I will look a bit more into this as well.
@corwintines thanks. Ok! yes, I'll take a look at those cases. I'll probably add a separate story for the mobile view since it is not automatically displayed, you need to pass a isMobile
prop.
Create story tests for TableOfContents component
Prerequisite
To get yourself up to speed on how we use storybook on ethereum.org, learn more here
What to do
/src/components/TableOfContents/TableOfContents.stories.tsx
Nice to have