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 / presets / Checkout / ShippingMethodOption.story.tsx
Size: Mime:
import React from 'react'
import { storiesOf } from '@storybook/react'
import { toCommonState } from 'src/state'
import { ShippingMethodOption } from 'presets/Checkout/ShippingMethodOption'
import { shippingMethodOptionList } from './fixture'

const handleChange = (event: Event, item) =>
  console.log(
    '[Story/Checkout/ShippingMethodOption] handleChange: ',
    item.value
  )

storiesOf('presets/Checkout', module).add('ShippingMethodOption', () => (
  <ShippingMethodOption
    list={shippingMethodOptionList}
    onChange={handleChange}
  />
))