diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Feed/Feed.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/Feed/Feed.tsx b/src/components/Feed/Feed.tsx index 5805e35..bf3c5b7 100644 --- a/src/components/Feed/Feed.tsx +++ b/src/components/Feed/Feed.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Poll } from 'which-types'; import { WindowScroller, AutoSizer, List } from 'react-virtualized'; import PollCard from '../PollCard/PollCard'; -import Loading from '../Loading/Loading'; + interface PropTypes { polls: Poll[]; @@ -26,7 +26,7 @@ const Feed: React.FC<PropTypes> = ({ polls }) => { ); }; - const list = ( + return ( <WindowScroller> {({ height, @@ -57,8 +57,6 @@ const Feed: React.FC<PropTypes> = ({ polls }) => { )} </WindowScroller> ); - - return polls.length ? list : <Loading />; }; export default Feed; |