From c64c55365339f8e5f7ca7fdbfbdf6170ac2aca34 Mon Sep 17 00:00:00 2001 From: "Emma F. Mkpurunchi" Date: Sat, 24 Aug 2024 17:10:03 +0100 Subject: [PATCH] feature:implmentd product archive button --- .../products/mainproductdetailpage/page.tsx | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/app/dashboard/(user-dashboard)/products/mainproductdetailpage/page.tsx b/src/app/dashboard/(user-dashboard)/products/mainproductdetailpage/page.tsx index b69bcf2f7..e91bf290a 100644 --- a/src/app/dashboard/(user-dashboard)/products/mainproductdetailpage/page.tsx +++ b/src/app/dashboard/(user-dashboard)/products/mainproductdetailpage/page.tsx @@ -1,8 +1,10 @@ "use client"; +import { ChangeEvent, FormEvent, useState } from "react"; + import Image from "next/image"; import Link from "next/link"; -import { ChangeEvent, FormEvent, useState } from "react"; +import user from "../../../../../../public/images/user.png"; const Discard = () => { alert("Changes discard"); @@ -338,7 +340,24 @@ const ProductDetail = () => {

Comments

- {/*comment and reply*/} + {comments.map((comment, index) => ( +
+
+ User Avatar +
+

{comment.name}

+

{`${comment.date} ${comment.time}`}

+
+
+

{comment.comment}

+
+ ))}