CHANGE the references from '@storybook/theming/create' to '@storybook/theming/create', so it's react15 compatible

This commit is contained in:
Norbert de Langen 2019-11-04 14:36:35 +01:00
parent 869aaf6208
commit d54f137873
3 changed files with 4 additions and 4 deletions

View File

@ -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({

View File

@ -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',

View File

@ -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);