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

styling of comments

parent e2a9c3af
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...,!201Resolve "[MIN-114] Browse comments on the map"
import { Icon } from '@/shared/Icon';
import { Comment } from '@/types/models';
import React from 'react';
......@@ -8,12 +7,14 @@ interface CommentItemProps {
export const CommentItem = (commentItemProps: CommentItemProps): JSX.Element => {
const { comment } = commentItemProps;
const { owner, content } = comment;
let { owner } = comment;
if (!owner) {
owner = 'Anonymous';
}
return (
<div className="flex justify-between">
<div> {owner}</div>
<div> {content} </div>
<Icon name="arrow" className="h-6 w-6 fill-font-500" />
<div className="border border-slate-400">
<div className="p-4 font-bold"> {owner} </div>
<div className="p-4"> {comment.content} </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