price history + manage wish in single product page

This commit is contained in:
hamid zarghami
2025-09-17 16:06:25 +03:30
parent f849ebdb42
commit 7b51a18a4a
8 changed files with 686 additions and 29 deletions
+6
View File
@@ -7,6 +7,7 @@ import ProductCard from "@/components/ProductCard"
import { useGetWithList } from "../hooks/useProfileData"
import { IProduct } from "@/types/landing.types"
import { WishlistItem } from "../types/ProfileTypes"
import PageLoading from "@/components/PageLoading"
const FavoritePage: NextPage = () => {
@@ -66,6 +67,11 @@ const FavoritePage: NextPage = () => {
const products = withList?.results?.wishlist ? transformWishlistToProducts(withList.results.wishlist) : []
if (isLoading) {
return <PageLoading />
}
return (
<div className="p-3 sm:p-4 md:p-6">
<Menu pageActive='favorite' />