From 2ddbbad99c747bac25657c6ef932b98b4b6fdd39 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 22 Dec 2022 17:24:40 +0700 Subject: no message --- src/pages/my/menu.js | 56 +++++++++++++++++++++++++++++++++++++++---------- src/pages/my/profile.js | 3 ++- 2 files changed, 47 insertions(+), 12 deletions(-) diff --git a/src/pages/my/menu.js b/src/pages/my/menu.js index 3e8857ae..89f9dff7 100644 --- a/src/pages/my/menu.js +++ b/src/pages/my/menu.js @@ -5,24 +5,37 @@ import Link from "../../components/Link"; import { useAuth } from "../../helpers/auth"; import { ChevronRightIcon, - Cog6ToothIcon, + PencilSquareIcon, UserIcon } from "@heroicons/react/24/outline"; -const menus = [ - { name: 'Riwayat Pesanan', url: '/my/profile' }, +const activityMenus = [ + { name: 'Daftar Transaksi', url: '/my/profile' }, + { name: 'Penawaran Harga', url: '/my/profile' }, + { name: 'Purchase Order', url: '/my/profile' }, { name: 'Faktur Penjualan', url: '/my/profile' }, { name: 'Faktur Pajak', url: '/my/profile' }, { name: 'Surat Jalan', url: '/my/profile' } ]; +const serviceMenus = [ + { name: 'Customer Support', url: '/my/profile' }, + { name: 'F.A.Q', url: '/my/profile' }, +]; + +const settingMenus = [ + { name: 'Daftar Alamat', url: '/my/profile' }, + { name: 'Keluar Akun', url: '/my/profile' }, +]; + export default function MyMenu() { const [auth, setAuth] = useAuth(); return ( <> - + +
@@ -34,16 +47,37 @@ export default function MyMenu() {
- +
+ +
+

Aktivitas Pembelian

+
+ { activityMenus.map((menu, index) => ( + + { menu.name } + + )) } +
+ +

Pusat Bantuan

+
+ { serviceMenus.map((menu, index) => ( + + { menu.name } + + )) } +
-
- { menus.map((menu, index) => ( - - { menu.name } - - )) } +

Pengaturan Akun

+
+ { settingMenus.map((menu, index) => ( + + { menu.name } + + )) } +
diff --git a/src/pages/my/profile.js b/src/pages/my/profile.js index dcb38722..ebbd7f2a 100644 --- a/src/pages/my/profile.js +++ b/src/pages/my/profile.js @@ -33,8 +33,9 @@ export default function MyProfile() { return ( - + +
{ auth?.id && ( <> -- cgit v1.2.3