import React, { PropTypes, Component } from 'react'; import { intlShape } from 'react-intl'; import Router from '../router.js' import { Messages } from "meteor/nova:core"; import NovaForm from "meteor/nova:forms"; const PostsNewForm = (props, context) => { return (
{ Messages.flash(context.intl.formatMessage({id: "posts.created_message"}), "success"); Router.go('posts.single', post); }} />
) } PostsNewForm.contextTypes = { currentUser: React.PropTypes.object, intl: intlShape }; PostsNewForm.displayName = "PostsNewForm"; module.exports = PostsNewForm; export default PostsNewForm;