status-teller-network/stories/wizards/Sell/0_asset.stories.jsx

22 lines
685 B
JavaScript

import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from "@storybook/addon-info";
import {action} from "@storybook/addon-actions";
import SellerAssets from '../../../src/js/wizards/Sell/0_Asset/components/SellerAssets';
storiesOf('Wizards/Sell/0_Asset', module)
.add(
"No Asset Selected",
withInfo({inline: true})(() => (
<SellerAssets selectedAsset={null} availableAssets={['ETH', 'SNT']} selectAsset={action("select-asset")}/>
))
)
.add(
"Asset Selected",
withInfo({inline: true})(() => (
<SellerAssets selectedAsset={1} availableAssets={['ETH', 'SNT']} selectAsset={action("select-asset")}/>
))
);