Repository URL to install this package:
Version:
0.14.1 ▾
|
import React from 'react'
import { storiesOf } from '@storybook/react'
import { CommentBox } from 'src/forms/views'
import { commentBoxConfig } from './fixture'
const handleSubmit = args => {
console.log('[handler] submit', args.toSerialized())
}
const handleCancel = args => {
console.log('[handler] cancel', args.toSerialized())
}
storiesOf('forms/Views/CommentBox', module).add('default', () => (
<CommentBox
onSubmit={handleSubmit}
onCancel={handleCancel}
{...commentBoxConfig}
/>
))