StampyAI / stampy-ui

AI Safety Q&A web frontend
https://aisafety.info
MIT License
35 stars 9 forks source link

chore(storybook preview): use RemixStub decorator #623

Closed jrhender closed 5 months ago

jrhender commented 6 months ago

Fixes #452

Using RemixStub in order to provide necessary remix context https://blog.sentiero.digital/how-to-run-remix-link-component-in-storybook

Also, remove BrowserRouter as it was causing double router and isn't required for Remix https://remix.run/docs/en/main/guides/migrating-react-router-app#adapting-your-existing-app-code

jrhender commented 5 months ago

I'm looking to fix the linting before merging. I had a go at it today, but I'm not sure what's going on 🤔 . I don't understand why it fails in this PR check (and locally) but passed in this recent CI https://github.com/StampyAI/stampy-ui/actions/runs/8935500699/job/24544106416