mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #2206 from paulkaplan/staff-comments
Add * to comments from staff on preview
This commit is contained in:
commit
f9f662a3f3
2 changed files with 5 additions and 1 deletions
|
@ -113,7 +113,9 @@ class Comment extends React.Component {
|
||||||
<a
|
<a
|
||||||
className="username"
|
className="username"
|
||||||
href={`/users/${author.username}`}
|
href={`/users/${author.username}`}
|
||||||
>{author.username}</a>
|
>
|
||||||
|
{author.username}{author.scratchteam ? '*' : ''}
|
||||||
|
</a>
|
||||||
<div className="action-list">
|
<div className="action-list">
|
||||||
{visible ? (
|
{visible ? (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
@ -225,6 +227,7 @@ Comment.propTypes = {
|
||||||
author: PropTypes.shape({
|
author: PropTypes.shape({
|
||||||
id: PropTypes.number,
|
id: PropTypes.number,
|
||||||
image: PropTypes.string,
|
image: PropTypes.string,
|
||||||
|
scratchteam: PropTypes.bool,
|
||||||
username: PropTypes.string
|
username: PropTypes.string
|
||||||
}),
|
}),
|
||||||
canDelete: PropTypes.bool,
|
canDelete: PropTypes.bool,
|
||||||
|
|
|
@ -159,6 +159,7 @@ TopLevelComment.propTypes = {
|
||||||
author: PropTypes.shape({
|
author: PropTypes.shape({
|
||||||
id: PropTypes.number,
|
id: PropTypes.number,
|
||||||
image: PropTypes.string,
|
image: PropTypes.string,
|
||||||
|
scratchteam: PropTypes.bool,
|
||||||
username: PropTypes.string
|
username: PropTypes.string
|
||||||
}),
|
}),
|
||||||
canDelete: PropTypes.bool,
|
canDelete: PropTypes.bool,
|
||||||
|
|
Loading…
Reference in a new issue