import { Components, registerComponent, withCurrentUser, withMessages } from 'meteor/vulcan:core'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n'; import Users from 'meteor/vulcan:users'; import { STATES } from 'meteor/vulcan:accounts'; const UsersEditForm = (props, context) => { return ( } >

}>
{ props.flash(context.intl.formatMessage({ id: 'users.edit_success' }, {name: Users.getDisplayName(user)}), 'success') }} showRemove={true} />
); }; UsersEditForm.propTypes = { terms: PropTypes.object, // a user is defined by its unique _id or its unique slug }; UsersEditForm.contextTypes = { intl: intlShape }; UsersEditForm.displayName = 'UsersEditForm'; registerComponent('UsersEditForm', UsersEditForm, withMessages, withCurrentUser);