From e33a330786ffbfcd774de00dc697c6dff47faf27 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 14:20:44 +0700
Subject: fix

---
 src/lib/cart/components/Cart.jsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/lib/cart/components/Cart.jsx')

diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx
index 4b9dd41f..bb1f21f6 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -9,6 +9,7 @@ import { createSlug } from "@/core/utils/slug"
 import { useRouter } from "next/router"
 import BottomPopup from "@/core/components/elements/Popup/BottomPopup"
 import { toast } from "react-hot-toast"
+import Spinner from "@/core/components/elements/Spinner/Spinner"
 
 const Cart = () => {
   const router = useRouter()
@@ -119,6 +120,11 @@ const Cart = () => {
       </div>
 
       <div className="flex flex-col gap-y-4 px-4">
+        { cart.isLoading && (
+          <div className="flex justify-center my-4">
+            <Spinner className="w-6 text-gray_r-12/50 fill-gray_r-12" />
+          </div>
+        ) }
         { products?.map((product) => (
           <div key={product?.id} className="flex">
             <button
-- 
cgit v1.2.3

