diff options
author | Filip785 <fdjuricic98@gmail.com> | 2020-07-08 02:28:47 +0200 |
---|---|---|
committer | Filip785 <fdjuricic98@gmail.com> | 2020-07-08 02:28:47 +0200 |
commit | 68e9755e593bbd8230eab2a123e822022721f071 (patch) | |
tree | ae11c818f1678ab1780ab95872ecc68cc9114af4 /ui/src/components/comment-node.tsx | |
parent | 8fda7d00d5ec9e415b44aa10cff3c4d735563a20 (diff) |
Add cake day display in user page & posts/comments #682
Diffstat (limited to 'ui/src/components/comment-node.tsx')
-rw-r--r-- | ui/src/components/comment-node.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 155efe8e..762344aa 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -33,6 +33,7 @@ import { CommentForm } from './comment-form'; import { CommentNodes } from './comment-nodes'; import { UserListing } from './user-listing'; import { i18n } from '../i18next'; +import { CakeDay } from './cake-day'; interface CommentNodeState { showReply: boolean; @@ -124,6 +125,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { render() { let node = this.props.node; + const { creator_name, creator_published } = node.comment; return ( <div className={`comment ${ @@ -160,6 +162,12 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { }} /> </span> + + <CakeDay + creator_name={creator_name} + creator_published={creator_published} + /> + {this.isMod && ( <div className="badge badge-light d-none d-sm-inline mr-2"> {i18n.t('mod')} |