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/login.js | 2 +- src/pages/my/menu.js | 5 +++-- src/pages/my/wishlist.js | 6 ++++++ src/pages/register.js | 2 +- src/styles/globals.css | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/pages/login.js b/src/pages/login.js index cd48e5e6..e80de44e 100644 --- a/src/pages/login.js +++ b/src/pages/login.js @@ -65,7 +65,7 @@ export default function Login() {
{ 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) => ( diff --git a/src/pages/register.js b/src/pages/register.js index 046ae686..39bd137f 100644 --- a/src/pages/register.js +++ b/src/pages/register.js @@ -63,7 +63,7 @@ export default function Login() {