mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
CHANGE the references from '@storybook/theming/create' to '@storybook/theming/create', so it's react15 compatible
This commit is contained in:
parent
869aaf6208
commit
d54f137873
@ -354,7 +354,7 @@ addDecorator(
|
||||
And here's its new counterpart:
|
||||
|
||||
```js
|
||||
import { create } from '@storybook/theming';
|
||||
import { create } from '@storybook/theming/create';
|
||||
addParameters({
|
||||
options: {
|
||||
theme: create({
|
||||
|
@ -57,7 +57,7 @@ First create a new file in `.storybook` called `yourTheme.js`.
|
||||
Next paste the code below and tweak the variables.
|
||||
|
||||
```ts
|
||||
import { create } from '@storybook/theming';
|
||||
import { create } from '@storybook/theming/create';
|
||||
|
||||
export default create({
|
||||
base: 'light',
|
||||
@ -113,7 +113,7 @@ The `storybook/theming` package is built using TypeScript, so this should help c
|
||||
Many theme variables are optional, the `base` property is NOT. This is a perfectly valid theme:
|
||||
|
||||
```ts
|
||||
import { create } from '@storybook/theming';
|
||||
import { create } from '@storybook/theming/create';
|
||||
|
||||
export default create({
|
||||
base: 'light',
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { configure, addParameters, addDecorator } from '@storybook/react';
|
||||
import { create } from '@storybook/theming';
|
||||
import { create } from '@storybook/theming/create';
|
||||
import { withA11y } from '@storybook/addon-a11y';
|
||||
|
||||
addDecorator(withA11y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user