ryan 6 years ago
parent
commit
3bd26df7de

+ 0 - 2
packages/grafana-ui/src/components/Table/TableInputCSV.story.tsx

@@ -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

+ 0 - 23
packages/grafana-ui/src/utils/storybook/withFullSizeStory.tsx

@@ -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>
-);