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