Skip to content
Snippets Groups Projects
Commit fe151159 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

instead of showing comment creator show comment id

parent bb23dde3
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!202Resolve "[MIN-264] Right click - Add comment"
Pipeline #91823 passed
...@@ -7,13 +7,9 @@ interface CommentItemProps { ...@@ -7,13 +7,9 @@ interface CommentItemProps {
export const CommentItem = (commentItemProps: CommentItemProps): JSX.Element => { export const CommentItem = (commentItemProps: CommentItemProps): JSX.Element => {
const { comment } = commentItemProps; const { comment } = commentItemProps;
let { owner } = comment;
if (!owner) {
owner = 'Anonymous';
}
return ( return (
<div className="border border-slate-400"> <div className="border border-slate-400">
<div className="p-4 font-bold"> {owner} </div> <div className="p-4 font-bold"> #{comment.id} </div>
<div className="p-4"> {comment.content} </div> <div className="p-4"> {comment.content} </div>
</div> </div>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment