Merge pull request #5522 from psyked/patch-3

[docs] Fix syntax of `makeDecorator` example.
This commit is contained in:
Norbert de Langen 2019-02-12 00:48:10 +01:00 committed by GitHub
commit a7806a375e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ The `@storybook/addons` package contains a `makeDecorator` function which we can
import React from 'react';
import addons, { makeDecorator } from '@storybook/addons';
export withFoo = makeDecorator({
export default makeDecorator({
name: 'withFoo',
parameterName: 'foo',
// This means don't run this decorator if the notes decorator is not set