|
|
@ -10,16 +10,13 @@ export const Comments = ({ comments }) => { |
|
|
|
// connectToParent(comments);
|
|
|
|
// connectToParent(comments);
|
|
|
|
const Comment = ({ comment }) => { |
|
|
|
const Comment = ({ comment }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="flex flex-col w-full"> |
|
|
|
<div className="w-full flex flex-col"> |
|
|
|
<header className="w-full flex flex-row justify-between py-1"> |
|
|
|
<header className="w-full flex flex-row justify-between py-1"> |
|
|
|
<div className="flex flex-row items-end"> |
|
|
|
<div className="flex flex-row items-end"> |
|
|
|
<Avatar source={comment.userImage} size={60} rounded={true} /> |
|
|
|
<Avatar source={comment.userImage} size={60} rounded={true} /> |
|
|
|
<div className="flex flex-col"> |
|
|
|
<div className="flex flex-col"> |
|
|
|
<strong className="text-lg mr-2">{comment.username}</strong> |
|
|
|
<strong className="mr-2 text-lg">{comment.username}</strong> |
|
|
|
<div |
|
|
|
<div className="flex flex-row items-center divide-x divide-gray-300 divided ltr"> |
|
|
|
className="flex flex-row divide-x divide-gray-300 divided items-center" |
|
|
|
|
|
|
|
style={{ direction: "ltr" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span className="px-2 text-xs text-gray-500"> |
|
|
|
<span className="px-2 text-xs text-gray-500"> |
|
|
|
{comment.product?.color} |
|
|
|
{comment.product?.color} |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -29,10 +26,7 @@ export const Comments = ({ comments }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div className="flex flex-row items-center divide-x divide-gray-300 divided ltr"> |
|
|
|
className="flex flex-row divide-x divide-gray-300 divided items-center" |
|
|
|
|
|
|
|
style={{ direction: "ltr" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span className="px-2 text-sm text-blue-400"> |
|
|
|
<span className="px-2 text-sm text-blue-400"> |
|
|
|
{moment(comment.data).locale("fa").format("YYYY/MM/DD")} |
|
|
|
{moment(comment.data).locale("fa").format("YYYY/MM/DD")} |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -42,7 +36,7 @@ export const Comments = ({ comments }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|
<div className="flex flex-row py-4"> |
|
|
|
<div className="flex flex-row py-4"> |
|
|
|
<div style={{ width: 60 }} className="min-h-full"></div> |
|
|
|
<div className="w-[60px] min-h-full "></div> |
|
|
|
<div className="flex flex-1 flex-col px-3"> |
|
|
|
<div className="flex flex-1 flex-col px-3"> |
|
|
|
<header className="w-full flex flex-row justify-between items-center"> |
|
|
|
<header className="w-full flex flex-row justify-between items-center"> |
|
|
|
<div className="flex flex-row items-center">Stars</div> |
|
|
|
<div className="flex flex-row items-center">Stars</div> |
|
|
|