mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
adapt new post dialog size based on logged in status
This commit is contained in:
parent
aeb1c25673
commit
6051ddb68e
1 changed files with 3 additions and 1 deletions
|
@ -4,8 +4,10 @@ import { ModalTrigger } from "meteor/nova:core";
|
|||
|
||||
const PostsNewButton = (props, context) => {
|
||||
|
||||
const size = context.currentUser ? "small" : "large";
|
||||
|
||||
return (
|
||||
<ModalTrigger title="New Post" component={<Button className="posts-new-button" bsStyle="primary">New Post</Button>}>
|
||||
<ModalTrigger size={size} title="New Post" component={<Button className="posts-new-button" bsStyle="primary">New Post</Button>}>
|
||||
<Telescope.components.PostsNewForm/>
|
||||
</ModalTrigger>
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue