2016-03-25 10:45:28 +09:00
|
|
|
import React, { PropTypes, Component } from 'react';
|
|
|
|
import { Button } from 'react-bootstrap';
|
2016-03-27 13:04:21 +09:00
|
|
|
import Core from "meteor/nova:core";
|
2016-03-30 10:52:40 +09:00
|
|
|
const ModalTrigger = Core.ModalTrigger;
|
2016-03-27 13:04:21 +09:00
|
|
|
|
2016-03-25 10:45:28 +09:00
|
|
|
const NewPostButton = (props, context) => {
|
|
|
|
|
2016-03-31 09:36:25 +09:00
|
|
|
({PostNewForm} = Telescope.components);
|
2016-03-25 10:45:28 +09:00
|
|
|
|
|
|
|
return (
|
|
|
|
<ModalTrigger component={<Button bsStyle="primary">New Post</Button>}>
|
2016-03-31 09:36:25 +09:00
|
|
|
<PostNewForm/>
|
2016-03-25 10:45:28 +09:00
|
|
|
</ModalTrigger>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = NewPostButton;
|
|
|
|
export default NewPostButton;
|