mirror of
https://github.com/vale981/Vulcan
synced 2025-03-12 13:36:37 -04:00
15 lines
469 B
React
15 lines
469 B
React
![]() |
import { registerComponent } from 'meteor/vulcan:core';
|
||
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import Users from 'meteor/vulcan:users';
|
||
|
import { Link } from 'react-router';
|
||
|
|
||
|
const UsersName = ({user}) => <Link className="users-name" to={Users.getProfileUrl(user)}>{Users.getDisplayName(user)}</Link>
|
||
|
|
||
|
UsersName.propTypes = {
|
||
|
user: PropTypes.object.isRequired,
|
||
|
}
|
||
|
|
||
|
UsersName.displayName = 'UsersName';
|
||
|
|
||
|
registerComponent('UsersName', UsersName);
|