Vulcan/packages/nova-base-components/lib/posts/PostsNewButton.jsx

18 lines
507 B
React
Raw Normal View History

2016-03-25 10:45:28 +09:00
import React, { PropTypes, Component } from 'react';
import { Button } from 'react-bootstrap';
import Core from "meteor/nova:core";
2016-03-30 10:52:40 +09:00
const ModalTrigger = Core.ModalTrigger;
const PostsNewButton = (props, context) => {
2016-03-25 10:45:28 +09:00
2016-04-14 10:12:35 +09:00
({PostsNewForm} = Telescope.components);
2016-03-25 10:45:28 +09:00
return (
<ModalTrigger title="New Post" component={<Button className="posts-new-button" bsStyle="primary">New Post</Button>}>
2016-04-14 10:12:35 +09:00
<PostsNewForm/>
2016-03-25 10:45:28 +09:00
</ModalTrigger>
)
}
module.exports = PostsNewButton;
export default PostsNewButton;