2019-01-22 19:01:06 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import {storiesOf} from '@storybook/react';
|
|
|
|
import {withInfo} from "@storybook/addon-info";
|
|
|
|
|
2019-04-02 17:00:58 +00:00
|
|
|
import IncludeSignatureForm from '../../src/js/components/tmp/IncludeSignatureForm';
|
2019-01-22 19:01:06 +00:00
|
|
|
|
|
|
|
const info = {inline: true, propTables: [IncludeSignatureForm.WrappedComponent]};
|
|
|
|
|
2019-02-25 11:36:42 +00:00
|
|
|
storiesOf('tmp/Signature Form', module)
|
2019-01-22 19:01:06 +00:00
|
|
|
.add(
|
|
|
|
"Empty Form",
|
|
|
|
withInfo(info)(() => (
|
|
|
|
<IncludeSignatureForm />
|
|
|
|
))
|
|
|
|
)
|
|
|
|
.add(
|
|
|
|
"Form Loading",
|
|
|
|
withInfo(info)(() => (
|
|
|
|
<IncludeSignatureForm loading={true} />
|
|
|
|
))
|
|
|
|
)
|
|
|
|
.add(
|
|
|
|
"Form Loading + Hash",
|
|
|
|
withInfo(info)(() => (
|
|
|
|
<IncludeSignatureForm loading={true} txHash="0xd152ad280723b7b275ff4da1eb8afa09e99077beef253a387f7bc1c61e826230" />
|
|
|
|
))
|
|
|
|
)
|
|
|
|
.add(
|
|
|
|
"Form Success",
|
|
|
|
withInfo(info)(() => (
|
|
|
|
<IncludeSignatureForm loading={false} txHash="0xd152ad280723b7b275ff4da1eb8afa09e99077beef253a387f7bc1c61e826230"
|
|
|
|
receipt={{cool: 'it worked'}} />
|
|
|
|
))
|
|
|
|
);
|