-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: migrate to storybook 6 * fix: use .js for babelrc * fix: force the use of an older version of styled-jsx * fix: force the use of ui @ 6
- Loading branch information
1 parent
1a53c6a
commit 49e0f0a
Showing
7 changed files
with
69 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const babelPath = require.resolve( | ||
'@dhis2/cli-app-scripts/config/app.babel.config.js' | ||
) | ||
|
||
module.exports = { | ||
extends: babelPath, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
module.exports = { | ||
addons: [ | ||
'@storybook/preset-create-react-app' | ||
], | ||
addons: ['@storybook/preset-create-react-app'], | ||
stories: ['../src/**/*.stories.@(js|mdx)'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react' | ||
import { CssReset } from '@dhis2/ui-core' | ||
|
||
export const decorators = [ | ||
Story => ( | ||
<div> | ||
<CssReset /> | ||
<Story /> | ||
<style jsx>{` | ||
:global(html) { | ||
height: 100%; | ||
} | ||
:global(body) { | ||
height: 100%; | ||
min-height: 100%; | ||
} | ||
:global(#root) { | ||
height: 100%; | ||
padding: 16px; | ||
} | ||
`}</style> | ||
</div> | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters