Skip to content

Commit

Permalink
fix(docz-example-styled-components): add scheduler and remove caaf
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer committed Aug 27, 2019
1 parent 5063fc2 commit 1d66cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion examples/styled-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-components": "^4.3.2"
"styled-components": "^4.3.2",
"scheduler": "^0.15.0"
},
"devDependencies": {
"docz": "^2.0.0-rc.1"
Expand Down
12 changes: 0 additions & 12 deletions examples/styled-components/src/components/Alert.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,3 @@ import { Alert } from './Alert'
<Alert kind="negative">Some message</Alert>
<Alert kind="warning">Some message</Alert>
</Playground>

## Use with children as a function

<Playground>
{() => {
const message = 'Hello world'

return (
<Alert>{message}</Alert>
)
}}
</Playground>

0 comments on commit 1d66cad

Please sign in to comment.