diff options
author | Eugene <eug-vs@keemail.me> | 2020-01-28 19:56:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 19:56:24 +0000 |
commit | 547a6101f3ec0d01680cd14bf74c9a8386b9a835 (patch) | |
tree | 2ffa01673377d33af49ea8dbc317cde6f2bf0a42 /src/components/SmartList/SmartList.js | |
parent | 4486c9f47ab4f9ba76ac09fab6bd8dd41e08cf7a (diff) | |
parent | 1ea6ae2f80e5e3f60ad89b4d6d02281c817cee43 (diff) | |
download | chrono-cube-ui-547a6101f3ec0d01680cd14bf74c9a8386b9a835.tar.gz |
Merge pull request #47 from Eug-VS/benzin
Migrate to BENZIN
Diffstat (limited to 'src/components/SmartList/SmartList.js')
-rw-r--r-- | src/components/SmartList/SmartList.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/components/SmartList/SmartList.js b/src/components/SmartList/SmartList.js deleted file mode 100644 index b462c47..0000000 --- a/src/components/SmartList/SmartList.js +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react'; - -import { FixedSizeList } from 'react-window'; -import AutoSizer from 'react-virtualized-auto-sizer'; - - -const SmartList = ({ itemSize, itemCount, renderItem }) => { - - return ( - <div style={{ flex: '1 1 auto', overflow: 'hidden' }}> - <AutoSizer> - {({ width, height }) => ( - <FixedSizeList - height={height} - width={width} - itemSize={itemSize} - itemCount={itemCount} - > - {renderItem} - </FixedSizeList> - )} - </AutoSizer> - </div> - ); -}; - - -export default SmartList; |