price history + manage wish in single product page
This commit is contained in:
@@ -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' />
|
||||
|
||||
Reference in New Issue
Block a user