mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
14 lines
No EOL
418 B
JavaScript
14 lines
No EOL
418 B
JavaScript
import React, { PropTypes, Component } from 'react';
|
|
import Users from 'meteor/nova:users';
|
|
import { Link } from 'react-router';
|
|
|
|
const UsersName = ({user}) => <Link className="users-name" to={Users.getProfileUrl(user)}>{Users.getDisplayName(user)}</Link>
|
|
|
|
UsersName.propTypes = {
|
|
user: React.PropTypes.object.isRequired,
|
|
}
|
|
|
|
UsersName.displayName = "UsersName";
|
|
|
|
module.exports = UsersName;
|
|
export default UsersName; |