Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const toStorybook = () => mount('welcome', { showApp: () => linkTo('Button') });
.add('built from the precompilation', () => mount('anothertest', {}), {
notes: 'WARN, only works in lower case, never upper case with precompiled templates',
storiesOf('Welcome', module).add('to Storybook', () =>
mount('welcome', { showApp: () => linkTo('Button') })
);
storiesOf('Welcome', module).add('Welcome', () =>
mount('welcome', { goToButton: linkTo('Button') })
);
export const goToWelcome = () =>
mount('my-button', {
rounded: true,
content: 'This button links to Welcome',
value: 'with a parameter',
handleClick: linkTo('Welcome', 'Welcome'),
});
export const actionOnly = () =>
mount('my-button', {
handleClick: action('button-click'),
content: 'Click me to log the action',
});
() =>
tag('test', '<div>simple test ({ opts.value })</div>', '', '', () => {}) &&
mount('test', { value: 'with a parameter' })
)
export const passedToStory = ({ parameters: { fileName, ...parameters } }) =>
mount('parameters', { ...parameters, storyParameter });