From 2dbc43a4ebc37e998fc65a9a4a0df4bc1b07c896 Mon Sep 17 00:00:00 2001 From: Dwindi Ramadhana Date: Wed, 31 Dec 2025 14:27:06 +0700 Subject: [PATCH] fix: simplify More page - Marketing as simple button without submenu - Remove inline submenu expansion for Marketing - Keep it consistent with Appearance and Settings (simple buttons) - Description provides enough context about what's inside --- admin-spa/src/routes/More/index.tsx | 52 +++++++++-------------------- 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/admin-spa/src/routes/More/index.tsx b/admin-spa/src/routes/More/index.tsx index abed9e6..d08f863 100644 --- a/admin-spa/src/routes/More/index.tsx +++ b/admin-spa/src/routes/More/index.tsx @@ -12,7 +12,6 @@ interface MenuItem { label: string; description: string; to: string; - children?: { label: string; to: string }[]; } const menuItems: MenuItem[] = [ @@ -20,11 +19,7 @@ const menuItems: MenuItem[] = [ icon: , label: __('Marketing'), description: __('Newsletter, coupons, and promotions'), - to: '/marketing', - children: [ - { label: __('Newsletter'), to: '/marketing/newsletter' }, - { label: __('Coupons'), to: '/coupons' }, - ] + to: '/marketing' }, { icon: , @@ -80,37 +75,22 @@ export default function MorePage() { {/* Menu Items */}
{menuItems.map((item) => ( -
- - {/* Submenu items */} - {item.children && item.children.length > 0 && ( -
- {item.children.map((child) => ( - - ))} -
- )} -
+
+ + ))}