README.md+2−1
@@ -1,3 +1,4 @@
11# Purescript React Basic Storybook
22
3−## [Docs](https://6361654082cc659cc6303ca4-ucjknohqcs.chromatic.com/?path=/docs/introduction-readme--docs)
3+The docs to this library are an example of a storybook written in PS itself (in the example folder):
4+## [See the storybook](https://6361654082cc659cc6303ca4-ucjknohqcs.chromatic.com/?path=/docs/introduction-readme--docs)
example/stories/AppDecorator.jsdeleted−4
@@ -1,4 +0,0 @@
1−import { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';
2−import purescript from 'react-syntax-highlighter/dist/esm/languages/prism/purescript';
3−
4−export const registerPS = () => SyntaxHighlighter.registerLanguage("purescript", purescript)
example/stories/AppDecorator.purs−3
@@ -5,11 +5,8 @@ import Prelude
55import React.Basic.DOM as R
66import Storybook (MetaDecorator, metaDecorator)
77
8−foreign import registerPS :: Unit -> Unit
9−
108appDecorator ∷ MetaDecorator
119appDecorator = metaDecorator $ \child -> do
12− let _ = registerPS unit
1310 R.div
1411 { style: R.css
1512 { background: "radial-gradient(#f4f2f5 67%, #efeff2 100%)"