Skip to content

Commit

Permalink
feature:implmentd product archive button
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmadegreat committed Aug 24, 2024
1 parent 8772da6 commit c64c553
Showing 1 changed file with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -338,7 +340,24 @@ const ProductDetail = () => {

<div className="mt-8 rounded-md bg-white p-4 shadow-md">
<h2 className="mb-4 text-lg font-semibold">Comments</h2>
{/*comment and reply*/}
{comments.map((comment, index) => (
<div key={index} className="mb-4">
<div className="mb-2 flex items-center">
<Image
src={user}
alt="User Avatar"
width={40}
height={40}
className="rounded-full"
/>
<div className="ml-4">
<p className="font-semibold">{comment.name}</p>
<p className="text-sm text-gray-500">{`${comment.date} ${comment.time}`}</p>
</div>
</div>
<p className="text-sm text-gray-700">{comment.comment}</p>
</div>
))}
<textarea
className="w-full rounded-md border-[1px] border-orange-500 bg-[#FAFAFA] p-2 focus:outline-none"
rows={4}
Expand Down

0 comments on commit c64c553

Please sign in to comment.