/* A component that shows a detailed view of a single movie. Wrapped with the "withDocument" container. */ import React, { PropTypes, Component } from 'react'; import Movies from '../collection.js'; import { withDocument } from 'meteor/nova:core'; import { compose } from 'react-apollo'; import gql from 'graphql-tag'; const MoviesDetails = props => { const movie = props.document; if (props.loading) { return
Loading…
} else { return (Reviewed by {movie.user && movie.user.__displayName} on {movie.createdAt}
{movie.review}
{movie.privateComments ?PRIVATE: {movie.privateComments}
: null}