From 9661bcf006332508084d4fdf5c0e2041fdfe9162 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 8 Mar 2024 17:11:36 +0700 Subject: Update empty state on cart page --- public/images/empty_cart.svg | 3601 +++++++++++++++++++++++++++++++++ src-migrate/pages/shop/cart/index.tsx | 10 + 2 files changed, 3611 insertions(+) create mode 100644 public/images/empty_cart.svg diff --git a/public/images/empty_cart.svg b/public/images/empty_cart.svg new file mode 100644 index 00000000..76e4db1a --- /dev/null +++ b/public/images/empty_cart.svg @@ -0,0 +1,3601 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + X + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src-migrate/pages/shop/cart/index.tsx b/src-migrate/pages/shop/cart/index.tsx index 9ec58a48..5c047af4 100644 --- a/src-migrate/pages/shop/cart/index.tsx +++ b/src-migrate/pages/shop/cart/index.tsx @@ -10,6 +10,7 @@ import { useCartStore } from '~/modules/cart/stores/useCartStore' import CartItem from '~/modules/cart/components/Item' import CartSummary from '~/modules/cart/components/Summary' import clsxm from '~/libs/clsxm' +import Image from '~/components/ui/image' const CartPage = () => { const auth = getAuth() @@ -60,6 +61,15 @@ const CartPage = () => {
{cart?.products.map((item) => )} + + {cart?.products?.length === 0 && ( +
+ Empty Cart +
Keranjangnya masih kosong nih
+
Yuk, tambahin barang-barang yang kamu mau ke keranjang sekarang!
Ada banyak potongan belanjanya pakai kode voucher
+ Mulai Belanja +
+ )}
-- cgit v1.2.3