Vulcan/packages/nova-base-components/lib/users/UsersAccount.jsx

17 lines
577 B
React
Raw Normal View History

2016-08-08 11:18:21 +09:00
import Telescope from 'meteor/nova:lib';
2016-06-11 16:36:18 +09:00
import React from 'react';
import Users from 'meteor/nova:users';
2016-11-15 18:33:16 +01:00
import { withCurrentUser } from 'meteor/nova:core';
2016-06-11 16:36:18 +09:00
const UsersAccount = (props, context) => {
2016-11-15 18:33:16 +01:00
const terms = props.params.slug ? {slug: props.params.slug} : props.currentUser ? {userId: props.currentUser._id } : {};
return <Telescope.components.UsersEditForm {...terms} />
2016-06-11 16:36:18 +09:00
};
2016-11-15 18:33:16 +01:00
UsersAccount.propTypes = {
2016-06-11 16:36:18 +09:00
currentUser: React.PropTypes.object
2016-11-15 18:33:16 +01:00
};
2016-06-11 16:36:18 +09:00
UsersAccount.displayName = "UsersAccount";
2016-06-11 16:36:18 +09:00
Telescope.registerComponent('UsersAccount', UsersAccount, withCurrentUser);