mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
30 lines
No EOL
655 B
JavaScript
30 lines
No EOL
655 B
JavaScript
/*
|
|
|
|
A component to configure the "edit movie" form.
|
|
Wrapped with the "withSingle" container.
|
|
|
|
*/
|
|
|
|
import Telescope from 'meteor/nova:lib';
|
|
import React, { PropTypes, Component } from 'react';
|
|
import NovaForm from "meteor/nova:forms";
|
|
import Movies from '../collection.js';
|
|
import { compose } from 'react-apollo';
|
|
|
|
const MoviesEditForm = (props, context) => {
|
|
return (
|
|
<NovaForm
|
|
collection={Movies}
|
|
documentId={props.documentId}
|
|
refetch={props.refetch}
|
|
queryName="moviesListQuery"
|
|
showRemove={true}
|
|
/>
|
|
)
|
|
}
|
|
|
|
MoviesEditForm.contextTypes = {
|
|
closeCallback: React.PropTypes.func,
|
|
}
|
|
|
|
export default MoviesEditForm; |