content: /**
   * Created by tomihei on 17/03/29.
   */
  import React from 'react';
  import InfiniteScroll from 'react-infinite-scroller';
  import MiniLoader from './miniLoader';
  import VideoListContent from './videoListContent';
  
  export default class VideoListRapper extends React.Component {
    componentWillMount() {
      this.props.initVideoList();
    }
  
    render() {
      const {
        isLogin,
        page,
        hasMore,
        url,
        videoList,
        requestVideoList,
        isFetching,
        auth,
      } = this.props;
  
      return (
  
        <InfiniteScroll
          loadMore={() => requestVideoList(url,{page})}
          loader={<MiniLoader size={20}/>}
          hasMore={hasMore && !isFetching}
          useWindow={true}
        >
          <VideoListContent
            videoList={videoList}
            auth={auth}
          />
        </InfiniteScroll>
  
      );
    }
  }
  