2016-12-06 18:06:29 +01:00
|
|
|
import { Components, registerComponent } from 'meteor/nova:lib';
|
2016-06-11 16:36:18 +09:00
|
|
|
import React from 'react';
|
2016-11-30 16:58:28 +09: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 } : {};
|
2016-12-06 18:06:29 +01:00
|
|
|
return <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
|
|
|
|
2016-07-18 17:59:47 +02:00
|
|
|
UsersAccount.displayName = "UsersAccount";
|
2016-06-11 16:36:18 +09:00
|
|
|
|
2016-12-06 18:06:29 +01:00
|
|
|
registerComponent('UsersAccount', UsersAccount, withCurrentUser);
|