UNPKG

xchain-components

Version:
38 lines (35 loc) 740 B
/* @flow */ /* eslint react/jsx-filename-extension: 0 */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withInfo } from '@storybook/addon-info'; import XTable from 'components/XTable'; export default storiesOf('XTable', module) .addDecorator(withInfo) .add('leaderBoard', () => { const header = ['RANK', 'BIDDER', 'BID AMOUNT']; const rows = [[ '1', 'Mitchell Williams', '$80', ], [ '2', 'Sussie Walker', '$41', ], [ '3', 'Sussie Walker', '$41', ], [ '4', 'Mitchell Williams', '$80', ]]; return ( <XTable tableHeader={header} tableRows={rows} /> ) });