mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 03:21:07 +08:00
Merge pull request #5522 from psyked/patch-3
[docs] Fix syntax of `makeDecorator` example.
This commit is contained in:
commit
a7806a375e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user