mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
17 lines
No EOL
549 B
JavaScript
17 lines
No EOL
549 B
JavaScript
import Telescope from 'meteor/nova:lib';
|
|
import React from 'react';
|
|
import Users from 'meteor/nova:users';
|
|
import { withCurrentUser } from 'meteor/nova:core';
|
|
|
|
const UsersAccount = (props, context) => {
|
|
const terms = props.params.slug ? {slug: props.params.slug} : props.currentUser ? {userId: props.currentUser._id } : {};
|
|
return <Telescope.components.UsersEditForm {...terms} />
|
|
};
|
|
|
|
UsersAccount.propTypes = {
|
|
currentUser: React.PropTypes.object
|
|
};
|
|
|
|
UsersAccount.displayName = "UsersAccount";
|
|
|
|
module.exports = withCurrentUser(UsersAccount); |