/* List of movies. Wrapped with the "withList" and "withCurrentUser" containers. */ import React, { PropTypes, Component } from 'react'; import { withList, withCurrentUser, Loading } from 'meteor/nova:core'; import Movies from '../../modules/movies/collection.js'; import MoviesItem from './MoviesItem.jsx'; import MoviesNewForm from './MoviesNewForm.jsx'; import AccountsForm from '../AccountsForm.jsx'; const MoviesList = ({results, currentUser, loading, loadMore, count, totalCount}) =>
{/* user accounts */} {loading ? :
{/* new document form */} {/* documents list */} {results.map(movie => )} {/* load more */} {totalCount > results.length ? {e.preventDefault(); loadMore();}}>Load More ({count}/{totalCount}) :

No more items.

}
}
const options = { collection: Movies, fragmentName: 'MoviesItemFragment', }; export default withList(options)(withCurrentUser(MoviesList))