mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
18 lines
No EOL
456 B
JavaScript
18 lines
No EOL
456 B
JavaScript
import React, { PropTypes, Component } from 'react';
|
|
import { Button } from 'react-bootstrap';
|
|
import Core from "meteor/nova:core";
|
|
const ModalTrigger = Core.ModalTrigger;
|
|
|
|
const NewPostButton = (props, context) => {
|
|
|
|
({PostNewForm} = Telescope.components);
|
|
|
|
return (
|
|
<ModalTrigger component={<Button bsStyle="primary">New Post</Button>}>
|
|
<PostNewForm/>
|
|
</ModalTrigger>
|
|
)
|
|
}
|
|
|
|
module.exports = NewPostButton;
|
|
export default NewPostButton; |