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

Fix Storybook web #17

Merged
merged 12 commits into from
Sep 14, 2023
Merged

Fix Storybook web #17

merged 12 commits into from
Sep 14, 2023

Conversation

narin
Copy link
Contributor

@narin narin commented Sep 13, 2023

Description

Fixes a couple issues that arose with Storybook on web:

  • Correct import of styled-components/native
  • Copy fonts to static folder and load SourceSansPro fonts properly using CSS
  • Add environment var when running on web called STORYBOOK_WEB and set to "true"
  • Only load RNLanguageDetector on mobile due to incompatibility with rn-web
  • Fix code snippet on Docs tab

Screenshots

image

@narin narin changed the title 6541 fix storybook web styling Fix Storybook web Sep 13, 2023
@narin narin marked this pull request as ready for review September 13, 2023 21:02
@narin narin requested a review from a team as a code owner September 13, 2023 21:02
Comment on lines +14 to +16
if (process.env.STORYBOOK_WEB !== 'true') {
i18n.use(RNLanguageDetector)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might need an alternative library for web down the line but we don't have any translations right now.

@narin narin merged commit 3cf4b7b into main Sep 14, 2023
@narin narin deleted the 6541-fix-storybook-web-styling branch September 14, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants