mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
25 lines
568 B
JavaScript
25 lines
568 B
JavaScript
/*
|
|
|
|
A component to configure the "new movie" form.
|
|
|
|
*/
|
|
|
|
import React, { PropTypes, Component } from 'react';
|
|
import SmartForm from "meteor/nova:forms";
|
|
import Movies from '../collection.js';
|
|
import { MoviesListFragment } from './MoviesList.jsx';
|
|
import { withMessages } from 'meteor/nova:core';
|
|
|
|
const MoviesNewForm = (props, context) => {
|
|
return (
|
|
<SmartForm
|
|
collection={Movies}
|
|
mutationFragment={MoviesListFragment}
|
|
/>
|
|
)
|
|
}
|
|
|
|
MoviesNewForm.contextTypes = {
|
|
closeCallback: React.PropTypes.func,
|
|
}
|
|
export default withMessages(MoviesNewForm);
|