mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
25 lines
591 B
React
25 lines
591 B
React
![]() |
/*
|
||
|
|
||
|
A component to configure the "edit movie" form.
|
||
|
Wrapped with the "withDocument" container.
|
||
|
|
||
|
*/
|
||
|
|
||
|
import React, { PropTypes, Component } from 'react';
|
||
|
import { Components, registerComponent, getFragment } from "meteor/nova:core";
|
||
|
|
||
|
import Movies from '../../modules/movies/collection.js';
|
||
|
|
||
|
const MoviesEditForm = props =>
|
||
|
|
||
|
<Components.SmartForm
|
||
|
collection={Movies}
|
||
|
documentId={props.documentId}
|
||
|
mutationFragment={getFragment('MoviesItemFragment')}
|
||
|
showRemove={true}
|
||
|
successCallback={document => {
|
||
|
props.closeModal();
|
||
|
}}
|
||
|
/>
|
||
|
|
||
|
export default MoviesEditForm;
|