mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
more naming fixes
This commit is contained in:
parent
0907733208
commit
ea1791b253
4 changed files with 9 additions and 9 deletions
|
@ -5,13 +5,13 @@ const CanCreatePost = (props, context) => {
|
|||
const currentUser = context.currentUser;
|
||||
|
||||
const children = props.children;
|
||||
const AccountsForm = Telescope.components.AccountsForm;
|
||||
const UsersAccountForm = Telescope.components.UsersAccountForm;
|
||||
|
||||
if (!currentUser){
|
||||
return (
|
||||
<div>
|
||||
<h3>Please Log In</h3>
|
||||
<AccountsForm/>
|
||||
<UsersAccountForm/>
|
||||
</div>
|
||||
)
|
||||
} else if (Users.can.post(currentUser)) {
|
||||
|
|
|
@ -7,7 +7,7 @@ const ModalTrigger = Core.ModalTrigger;
|
|||
|
||||
const PostsCommentsThread = ({document, currentUser}) => {
|
||||
|
||||
({CommentsList, CommentsNew, PostsItem, PostsCategories, SocialShare, Vote, PostsStats, HeadTags, AccountsForm} = Telescope.components);
|
||||
({CommentsList, CommentsNew, PostsItem, PostsCategories, SocialShare, Vote, PostsStats, HeadTags, UsersAccountForm} = Telescope.components);
|
||||
|
||||
const post = document;
|
||||
|
||||
|
@ -31,7 +31,7 @@ const PostsCommentsThread = ({document, currentUser}) => {
|
|||
</div> :
|
||||
<div>
|
||||
<ModalTrigger size="small" component={<a>Please log in to comment</a>}>
|
||||
<AccountsForm/>
|
||||
<UsersAccountForm/>
|
||||
</ModalTrigger>
|
||||
</div> }
|
||||
</div>
|
||||
|
|
|
@ -4,14 +4,14 @@ import { Button, Input } from 'react-bootstrap';
|
|||
|
||||
import { Accounts } from 'meteor/std:accounts-ui';
|
||||
|
||||
const AccountsForm = () => {
|
||||
const UsersAccountForm = () => {
|
||||
return (
|
||||
<Accounts.ui.LoginForm />
|
||||
)
|
||||
};
|
||||
|
||||
module.exports = AccountsForm;
|
||||
export default AccountsForm;
|
||||
module.exports = UsersAccountForm;
|
||||
export default UsersAccountForm;
|
||||
|
||||
// customize Accounts.ui
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Button, Input } from 'react-bootstrap';
|
|||
|
||||
const UsersAccountMenu = () => {
|
||||
|
||||
({UsersAvatar, UsersName, AccountsForm} = Telescope.components);
|
||||
({UsersAvatar, UsersName, UsersAccountForm} = Telescope.components);
|
||||
|
||||
return (
|
||||
<Dropdown id="accounts-dropdown" className="users-account-menu">
|
||||
|
@ -12,7 +12,7 @@ const UsersAccountMenu = () => {
|
|||
Log In
|
||||
</Dropdown.Toggle>
|
||||
<Dropdown.Menu>
|
||||
<AccountsForm />
|
||||
<UsersAccountForm />
|
||||
</Dropdown.Menu>
|
||||
</Dropdown>
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue