Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / stories / forms / Views / CommentBox.story.tsx
Size: Mime:
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}
  />
))