Skip to content

Commit

Permalink
Banner story with typescript (equinor#739)
Browse files Browse the repository at this point in the history
* 🚚 Rename to .tsx

* βž• Add types for styled components and react

* πŸ“ Write the story with Typescript

* βž– Remove types as it was suddenly a separate PR

* 🎨 Get rid of types not found warning

It seems like this way of exporting things will make the warning for types not found in Storybook server go away

* 🎨 Export all banner props
  • Loading branch information
wenche authored and pomfrida committed Oct 28, 2020
1 parent 5eb8dbd commit 17f0552
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 260 deletions.
3 changes: 0 additions & 3 deletions apps/storybook-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
"@storybook/addons": "^6.0.27",
"@storybook/source-loader": "^6.0.27",
"@storybook/theming": "^6.0.27",
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
"@types/styled-components": "^5.1.4",
"babel-loader": "^8.1.0",
"react": "^16.13.1",
"react-is": "^16.13.1"
Expand Down
147 changes: 21 additions & 126 deletions apps/storybook-react/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 17f0552

Please sign in to comment.