-
-
- Reply from {review.seller.name}{" "}
-
- |{" "}
+
+
+
+ Reply from {review.seller.name}
+
+
+
+
{formatDistanceToNow(new Date(review.updated_at), {
addSuffix: true,
})}
-
-
-
{review.seller_note}
+
+
+
{review.seller_note}
)}
diff --git a/src/components/molecules/index.ts b/src/components/molecules/index.ts
index da5c1551..a677090b 100644
--- a/src/components/molecules/index.ts
+++ b/src/components/molecules/index.ts
@@ -13,6 +13,7 @@ import { ProductCarouselIndicator } from "./ProductCarouselIndicator/ProductCaro
import { Modal } from "./Modal/Modal"
import { ReportListingForm } from "./ReportListingForm/ReportListingForm"
import { SellerInfo } from "./SellerInfo/SellerInfo"
+import { SellerInfoHeader } from "./SellerInfoHeader/SellerInfoHeader"
import { TabsList } from "./TabsList/TabsList"
import { TabsContent } from "./TabsContent/TabsContent"
import { SellerScore } from "./SellerScore/SellerScore"
@@ -49,6 +50,7 @@ export {
Modal,
ReportListingForm,
SellerInfo,
+ SellerInfoHeader,
TabsList,
TabsContent,
SellerScore,
diff --git a/src/components/organisms/Chat/Chat.tsx b/src/components/organisms/Chat/Chat.tsx
index dbb10ab7..3128ffc3 100644
--- a/src/components/organisms/Chat/Chat.tsx
+++ b/src/components/organisms/Chat/Chat.tsx
@@ -18,6 +18,8 @@ export const Chat = ({
product,
subject,
order_id,
+ variant = "tonal",
+ buttonSize = "small",
}: {
user: HttpTypes.StoreCustomer | null
seller: SellerProps
@@ -26,6 +28,8 @@ export const Chat = ({
product?: HttpTypes.StoreProduct
subject?: string
order_id?: string
+ variant?: "tonal" | "filled"
+ buttonSize?: "small" | "large"
}) => {
const [modal, setModal] = useState(false)
@@ -36,9 +40,10 @@ export const Chat = ({
return (
<>
diff --git a/src/components/organisms/SellerFooter/SellerFooter.tsx b/src/components/organisms/SellerFooter/SellerFooter.tsx
index 6a6897db..266c12fa 100644
--- a/src/components/organisms/SellerFooter/SellerFooter.tsx
+++ b/src/components/organisms/SellerFooter/SellerFooter.tsx
@@ -10,7 +10,7 @@ import { useState } from "react"
export const SellerFooter = ({ seller }: { seller: SellerProps }) => {
const [openModal, setOpenModal] = useState(false)
return (
-
+
{/* {seller.verified && (
@@ -29,7 +29,7 @@ export const SellerFooter = ({ seller }: { seller: SellerProps }) => {
className="uppercase"
onClick={() => setOpenModal(true)}
>
- Report
+ Report Seller
{openModal && (
setOpenModal(false)}>
diff --git a/src/components/organisms/SellerHeading/SellerHeading.tsx b/src/components/organisms/SellerHeading/SellerHeading.tsx
index 09f5cceb..a921804d 100644
--- a/src/components/organisms/SellerHeading/SellerHeading.tsx
+++ b/src/components/organisms/SellerHeading/SellerHeading.tsx
@@ -2,6 +2,7 @@ import { SellerInfo } from "@/components/molecules"
import { SellerProps } from "@/types/seller"
import { Chat } from "../Chat/Chat"
import { HttpTypes } from "@medusajs/types"
+import { Button } from "@medusajs/ui"
export const SellerHeading = ({
seller,
@@ -13,18 +14,31 @@ export const SellerHeading = ({
user: HttpTypes.StoreCustomer | null
}) => {
return (
-
-
- {user && (
-
-
+
+
+
+
- )}
+ {user && (
+
+
+
+ )}
+
+
)
}
diff --git a/src/components/sections/SellerPageHeader/SellerPageHeader.tsx b/src/components/sections/SellerPageHeader/SellerPageHeader.tsx
index 82f31055..69b49c31 100644
--- a/src/components/sections/SellerPageHeader/SellerPageHeader.tsx
+++ b/src/components/sections/SellerPageHeader/SellerPageHeader.tsx
@@ -11,14 +11,8 @@ export const SellerPageHeader = ({
user: HttpTypes.StoreCustomer | null
}) => {
return (
-