Merge pull request #2206 from paulkaplan/staff-comments

Add * to comments from staff on preview
This commit is contained in:
Paul Kaplan 2018-10-19 08:55:41 -04:00 committed by GitHub
commit f9f662a3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -113,7 +113,9 @@ class Comment extends React.Component {
<a
className="username"
href={`/users/${author.username}`}
>{author.username}</a>
>
{author.username}{author.scratchteam ? '*' : ''}
</a>
<div className="action-list">
{visible ? (
<React.Fragment>
@ -225,6 +227,7 @@ Comment.propTypes = {
author: PropTypes.shape({
id: PropTypes.number,
image: PropTypes.string,
scratchteam: PropTypes.bool,
username: PropTypes.string
}),
canDelete: PropTypes.bool,

View file

@ -159,6 +159,7 @@ TopLevelComment.propTypes = {
author: PropTypes.shape({
id: PropTypes.number,
image: PropTypes.string,
scratchteam: PropTypes.bool,
username: PropTypes.string
}),
canDelete: PropTypes.bool,