From c3386e06741165427b50fb7f33682bc0fdcabfce Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 19 Jan 2023 17:14:39 +0700 Subject: Checkout with upload PO --- src/pages/my/menu.js | 70 +++++++++++++++------------------------------------- 1 file changed, 20 insertions(+), 50 deletions(-) (limited to 'src/pages/my/menu.js') diff --git a/src/pages/my/menu.js b/src/pages/my/menu.js index e21b0433..0db6b011 100644 --- a/src/pages/my/menu.js +++ b/src/pages/my/menu.js @@ -7,36 +7,26 @@ import { ArrowRightOnRectangleIcon, ChatBubbleLeftRightIcon, ChevronRightIcon, - ClipboardDocumentIcon, - ClipboardIcon, - ClockIcon, - DocumentArrowDownIcon, MapIcon, PaperClipIcon, PencilSquareIcon, QuestionMarkCircleIcon, ReceiptPercentIcon, - UserIcon + UserIcon, + HeartIcon } from "@heroicons/react/24/outline"; -const activityMenus = [ - { icon: (), name: 'Daftar Transaksi', url: '/my/profile' }, - { icon: (), name: 'Penawaran Harga', url: '/my/profile' }, - { icon: (), name: 'Purchase Order', url: '/my/profile' }, - { icon: (), name: 'Faktur Penjualan', url: '/my/profile' }, - { icon: (), name: 'Faktur Pajak', url: '/my/profile' }, - { icon: (), name: 'Surat Jalan', url: '/my/profile' } -]; - -const serviceMenus = [ - { icon: (), name: 'Customer Support', url: '/my/profile' }, - { icon: (), name: 'F.A.Q', url: '/my/profile' }, -]; - -const settingMenus = [ - { icon: (),name: 'Daftar Alamat', url: '/my/address' }, - { icon: (),name: 'Keluar Akun', url: '/logout' }, -]; +const Menu = ({ icon, name, url }) => { + return ( + + + { icon } + { name } + + + + ); +}; export default function MyMenu() { const [auth] = useAuth(); @@ -64,41 +54,21 @@ export default function MyMenu() {

Aktivitas Pembelian

- { activityMenus.map((menu, index) => ( - - - { menu.icon } - { menu.name } - - - - )) } + } name="Daftar Transaksi" url="/my/transactions" /> + } name="Invoice & Faktur Pajak" url="/my/transactions" /> + } name="Wishlist" url="/my/wishlist" />

Pusat Bantuan

- { serviceMenus.map((menu, index) => ( - - - { menu.icon } - { menu.name } - - - - )) } + } name="Layanan Pelanggan" url="/" /> + } name="F.A.Q" url="/" />

Pengaturan Akun

- { settingMenus.map((menu, index) => ( - - - { menu.icon } - { menu.name } - - - - )) } + } name="Daftar Alamat" url="/my/address" /> + } name="Keluar Akun" url="/logout" />
-- cgit v1.2.3