From 2cc01b5fec98eb4d02f3d695b783223664acb2ed Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 31 Jan 2023 16:20:18 +0700 Subject: Fixing minor --- src/pages/my/menu.js | 5 +++-- src/pages/my/wishlist.js | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/pages/my') diff --git a/src/pages/my/menu.js b/src/pages/my/menu.js index 3de6f8a6..91d2d7c7 100644 --- a/src/pages/my/menu.js +++ b/src/pages/my/menu.js @@ -15,6 +15,7 @@ import { UserIcon, HeartIcon } from "@heroicons/react/24/outline"; +import WithAuth from "@/components/auth/WithAuth"; const Menu = ({ icon, name, url }) => { return ( @@ -32,7 +33,7 @@ export default function MyMenu() { const [auth] = useAuth(); return ( - <> + @@ -76,6 +77,6 @@ export default function MyMenu() { - + ); } \ No newline at end of file diff --git a/src/pages/my/wishlist.js b/src/pages/my/wishlist.js index 9683c785..3d479802 100644 --- a/src/pages/my/wishlist.js +++ b/src/pages/my/wishlist.js @@ -1,4 +1,5 @@ import WithAuth from "@/components/auth/WithAuth"; +import Alert from "@/components/elements/Alert"; import Pagination from "@/components/elements/Pagination"; import Spinner from "@/components/elements/Spinner"; import AppBar from "@/components/layouts/AppBar"; @@ -38,6 +39,11 @@ export default function Wishlist() { { !wishlists && ( ) } + { wishlists?.products?.length == 0 && ( + + Wishlist anda masih kosong + + ) }
{wishlists?.products.map((product) => ( -- cgit v1.2.3