diff options
Diffstat (limited to 'src/lib/cart/components/Cart.jsx')
| -rw-r--r-- | src/lib/cart/components/Cart.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
