This commit is contained in:
ryan 2019-03-08 20:49:45 -08:00
parent eca3824e2d
commit 3bd26df7de
2 changed files with 0 additions and 25 deletions

View File

@ -2,12 +2,10 @@ import React from 'react';
import { storiesOf } from '@storybook/react';
import TableInputCSV, { ParseResults } from './TableInputCSV';
//import { withFullSizeStory } from '../../utils/storybook/withFullSizeStory';
const TableInputStories = storiesOf('UI/Table/Input', module);
TableInputStories.add('default', () => {
//return withFullSizeStory(TableInputCSV, {});
return (
<div>
<TableInputCSV

View File

@ -1,23 +0,0 @@
import React from 'react';
import { AutoSizer } from 'react-virtualized';
export const withFullSizeStory = (component: React.ComponentType<any>, props: any) => (
<div
style={{
height: '100vh',
width: '100%',
}}
>
<AutoSizer>
{({ width, height }) => (
<>
{React.createElement(component, {
...props,
width,
height,
})}
</>
)}
</AutoSizer>
</div>
);