mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
26 lines
No EOL
514 B
JavaScript
26 lines
No EOL
514 B
JavaScript
/*
|
|
|
|
A component to configure the "new movie" form.
|
|
|
|
*/
|
|
|
|
import Telescope from 'meteor/nova:lib';
|
|
import React, { PropTypes, Component } from 'react';
|
|
import NovaForm from "meteor/nova:forms";
|
|
import Movies from '../collection.js';
|
|
|
|
const MoviesNewForm = (props, context) => {
|
|
return (
|
|
<NovaForm
|
|
collection={Movies}
|
|
queryToUpdate="moviesListQuery"
|
|
refetch={props.refetch}
|
|
/>
|
|
)
|
|
}
|
|
|
|
MoviesNewForm.contextTypes = {
|
|
closeCallback: React.PropTypes.func,
|
|
}
|
|
|
|
export default MoviesNewForm; |