diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-20 14:20:44 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-20 14:20:44 +0700 |
| commit | e33a330786ffbfcd774de00dc697c6dff47faf27 (patch) | |
| tree | cd35ce2a36c37cd8c6e991862f929d83dcd45464 /src/lib/cart/components/Cart.jsx | |
| parent | fdefe7cfe899125a9bd553b542976eed0de919c1 (diff) | |
fix
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 |
