update src/components/CommentDesign/Comments/index.js and data.js

master
mahdi andalib 3 years ago
parent 9fda2b36e5
commit 3b1820c78a
  1. 16
      src/components/CommentDesign/Comments/index.js
  2. 4
      src/redux/data.js

@ -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>

@ -9,11 +9,11 @@ import Blog from "../components/Blog";
import CardTrelloDesign from "../components/CardTrelloDesign"; import CardTrelloDesign from "../components/CardTrelloDesign";
import ChartDesign from "../components/ChartDesign"; import ChartDesign from "../components/ChartDesign";
import ProgressBar from "../components/ProgressBar"; import ProgressBar from "../components/ProgressBar";
import Checkbox from "../components/Checkbox";
import CommentDesign from "../components/CommentDesign";
// mini components // mini components
import MiniComponents from "../components/MiniComponents"; import MiniComponents from "../components/MiniComponents";
import Checkbox from "../components/Checkbox";
import CommentDesign from "../components/CommentDesign";
// import ButtonDesign from "./components/buttonDesign/ButtonDesign"; // import ButtonDesign from "./components/buttonDesign/ButtonDesign";
// import ProductDesign from "./components/productDesign/ProductDesign"; // import ProductDesign from "./components/productDesign/ProductDesign";

Loading…
Cancel
Save