From ed950b23d50f9b3993cfd2ac2386a5b3a68d5e57 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Mon, 20 Feb 2023 17:03:28 +0700 Subject: fix --- src/pages/my/menu.jsx | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/pages/my/menu.jsx (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx new file mode 100644 index 00000000..d3edaa3b --- /dev/null +++ b/src/pages/my/menu.jsx @@ -0,0 +1,94 @@ +import Divider from "@/core/components/elements/Divider/Divider" +import Link from "@/core/components/elements/Link/Link" +import AppLayout from "@/core/components/layouts/AppLayout" +import { ChevronRightIcon, UserIcon } from "@heroicons/react/24/solid" + +export default function Menu() { + return ( + + +
+ +
+
+
Rafi Zadanly
+
Akun Bisnis
+
+
+ +
+ + + + +
+
+ + Aktivitas Pembelian + + +
+ + Daftar Transaksi + + + Invoice & Faktur Pajak + + + Wishlist + +
+
+ +
+ + Pusat Bantuan + + +
+ + Customer Support + + + F.A.Q + +
+
+ +
+ + Pengaturan Akun + + +
+ + Daftar Alamat + + + Ubah Password + + + Keluar Akun + +
+
+
+
+ ) +} + +const MenuHeader = ({ children, ...props }) => ( +
+ { children } + +
+) + +const LinkItem = ({ children, ...props }) => ( + + { children } +
+ +
+ +) \ No newline at end of file -- cgit v1.2.3 From 3f2ff1475676ba47a841796e39e7d17d627e5356 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 21 Feb 2023 14:46:24 +0700 Subject: fix --- src/pages/my/menu.jsx | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index d3edaa3b..69e4b8bb 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -1,9 +1,20 @@ import Divider from "@/core/components/elements/Divider/Divider" import Link from "@/core/components/elements/Link/Link" import AppLayout from "@/core/components/layouts/AppLayout" +import useAuth from "@/core/hooks/useAuth" +import { deleteAuth } from "@/core/utils/auth" import { ChevronRightIcon, UserIcon } from "@heroicons/react/24/solid" +import { useRouter } from "next/router" export default function Menu() { + const auth = useAuth() + const router = useRouter() + + const logout = () => { + deleteAuth() + router.push('/login') + } + return ( @@ -11,8 +22,13 @@ export default function Menu() {
-
Rafi Zadanly
-
Akun Bisnis
+
{ auth?.name }
+ { auth?.company && ( +
Akun Bisnis
+ ) } + { !auth?.company && ( +
Akun Individu
+ ) }
@@ -67,9 +83,9 @@ export default function Menu() { Ubah Password - +
Keluar Akun - +
-- cgit v1.2.3 From de7361718def0f6bb32294bb074841ba2c0a3ce6 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 21 Feb 2023 16:25:35 +0700 Subject: fix --- src/pages/my/menu.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 69e4b8bb..e2a11390 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -47,10 +47,10 @@ export default function Menu() { Daftar Transaksi - + Invoice & Faktur Pajak - + Wishlist -- cgit v1.2.3 From 706088ffe9e13221207837bb658887645e76b3ed Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 21 Feb 2023 21:59:24 +0700 Subject: fix --- src/pages/my/menu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index e2a11390..0bd6137e 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -101,7 +101,7 @@ const MenuHeader = ({ children, ...props }) => ( ) const LinkItem = ({ children, ...props }) => ( - + { children }
-- cgit v1.2.3 From 98c8fc56db91664b98a50e9113787b56fe785b9e Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 21 Feb 2023 22:33:32 +0700 Subject: fix --- src/pages/my/menu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 0bd6137e..2ae00722 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -77,7 +77,7 @@ export default function Menu() {
- + Daftar Alamat -- cgit v1.2.3 From 82954ee3cfa38f21f677b9aa2c1c6c3c88004050 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 08:35:02 +0700 Subject: fix --- src/pages/my/menu.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index e2a11390..67ea1171 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -18,7 +18,7 @@ export default function Menu() { return ( -
+
@@ -80,9 +80,6 @@ export default function Menu() { Daftar Alamat - - Ubah Password -
Keluar Akun
-- cgit v1.2.3 From 3c559031623649a67825ff47f34512f0eb946861 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 10:14:32 +0700 Subject: fix --- src/pages/my/menu.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 46a0e4b3..3620fc36 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -80,9 +80,10 @@ export default function Menu() { Daftar Alamat -
- Keluar Akun -
+
+ +
+
-- cgit v1.2.3 From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 11:03:34 +0700 Subject: prettier --- src/pages/my/menu.jsx | 103 ++++++++++++++++++++------------------------------ 1 file changed, 40 insertions(+), 63 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 3620fc36..0edc98ae 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -1,10 +1,10 @@ -import Divider from "@/core/components/elements/Divider/Divider" -import Link from "@/core/components/elements/Link/Link" -import AppLayout from "@/core/components/layouts/AppLayout" -import useAuth from "@/core/hooks/useAuth" -import { deleteAuth } from "@/core/utils/auth" -import { ChevronRightIcon, UserIcon } from "@heroicons/react/24/solid" -import { useRouter } from "next/router" +import Divider from '@/core/components/elements/Divider/Divider' +import Link from '@/core/components/elements/Link/Link' +import AppLayout from '@/core/components/layouts/AppLayout' +import useAuth from '@/core/hooks/useAuth' +import { deleteAuth } from '@/core/utils/auth' +import { ChevronRightIcon, UserIcon } from '@heroicons/react/24/solid' +import { useRouter } from 'next/router' export default function Menu() { const auth = useAuth() @@ -12,78 +12,56 @@ export default function Menu() { const logout = () => { deleteAuth() - router.push('/login') + router.push('/login') } return ( - - -
- + + +
+
-
-
{ auth?.name }
- { auth?.company && ( -
Akun Bisnis
- ) } - { !auth?.company && ( -
Akun Individu
- ) } +
+
{auth?.name}
+ {auth?.company &&
Akun Bisnis
} + {!auth?.company &&
Akun Individu
}
-
- +
+
-
+
- - Aktivitas Pembelian - + Aktivitas Pembelian -
- - Daftar Transaksi - - - Invoice & Faktur Pajak - - - Wishlist - +
+ Daftar Transaksi + Invoice & Faktur Pajak + Wishlist
- - Pusat Bantuan - + Pusat Bantuan -
- - Customer Support - - - F.A.Q - +
+ Customer Support + F.A.Q
- - Pengaturan Akun - + Pengaturan Akun -
- - Daftar Alamat - +
+ Daftar Alamat
-
- +
+
@@ -92,17 +70,16 @@ export default function Menu() { } const MenuHeader = ({ children, ...props }) => ( -
- { children } - +
+ {children}
) const LinkItem = ({ children, ...props }) => ( - - { children } -
- + + {children} +
+
-) \ No newline at end of file +) -- cgit v1.2.3 From ac3fdf7be9982e65d8f83a20bc487f8dd62e3bfc Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 23:36:47 +0700 Subject: fix --- src/pages/my/menu.jsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 0edc98ae..576919ae 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -17,7 +17,10 @@ export default function Menu() { return ( - +
@@ -60,7 +63,10 @@ export default function Menu() { Daftar Alamat
-
+
@@ -70,13 +76,19 @@ export default function Menu() { } const MenuHeader = ({ children, ...props }) => ( -
+
{children}
) const LinkItem = ({ children, ...props }) => ( - + {children}
-- cgit v1.2.3 From ffa261e6adef70a2845878cf93e6e492eb8cee62 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Mon, 27 Feb 2023 10:49:45 +0700 Subject: footer --- src/pages/my/menu.jsx | 91 ++++++++++++++++++++++++++------------------------- 1 file changed, 47 insertions(+), 44 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 576919ae..40c84668 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -3,6 +3,7 @@ import Link from '@/core/components/elements/Link/Link' import AppLayout from '@/core/components/layouts/AppLayout' import useAuth from '@/core/hooks/useAuth' import { deleteAuth } from '@/core/utils/auth' +import IsAuth from '@/lib/auth/components/IsAuth' import { ChevronRightIcon, UserIcon } from '@heroicons/react/24/solid' import { useRouter } from 'next/router' @@ -16,62 +17,64 @@ export default function Menu() { } return ( - - -
- -
-
-
{auth?.name}
- {auth?.company &&
Akun Bisnis
} - {!auth?.company &&
Akun Individu
} -
-
- -
- + + + +
+ +
+
+
{auth?.name}
+ {auth?.company &&
Akun Bisnis
} + {!auth?.company &&
Akun Individu
} +
+
+ +
+ - + -
-
- Aktivitas Pembelian +
+
+ Aktivitas Pembelian -
- Daftar Transaksi - Invoice & Faktur Pajak - Wishlist +
+ Daftar Transaksi + Invoice & Faktur Pajak + Wishlist +
-
-
- Pusat Bantuan +
+ Pusat Bantuan -
- Customer Support - F.A.Q +
+ Customer Support + F.A.Q +
-
-
- Pengaturan Akun +
+ Pengaturan Akun -
- Daftar Alamat -
+
+ Daftar Alamat +
-
- +
+ +
-
- + + ) } -- cgit v1.2.3 From a1b9b647a6c4bda1f5db63879639d44543f9557e Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 1 Mar 2023 13:53:31 +0700 Subject: fix layout --- src/pages/my/menu.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages/my/menu.jsx') diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index 40c84668..b9fd30ee 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -54,7 +54,7 @@ export default function Menu() {
Customer Support - F.A.Q + F.A.Q
@@ -90,7 +90,7 @@ const MenuHeader = ({ children, ...props }) => ( const LinkItem = ({ children, ...props }) => ( {children}
-- cgit v1.2.3