mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 04:56:40 -04:00
15 lines
No EOL
469 B
JavaScript
15 lines
No EOL
469 B
JavaScript
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); |