From 12e982b3e577c17ef89a474c57637097de940ec9 Mon Sep 17 00:00:00 2001 From: dwindown Date: Wed, 5 Nov 2025 10:27:16 +0700 Subject: [PATCH] feat: Add WordPress button, settings navigation, and placeholder pages --- admin-spa/src/App.tsx | 37 ++++++++++++++++------ admin-spa/src/nav/tree.ts | 22 ++++++++----- admin-spa/src/routes/Settings/General.tsx | 19 +++++++++++ admin-spa/src/routes/Settings/Payments.tsx | 19 +++++++++++ admin-spa/src/routes/Settings/Shipping.tsx | 19 +++++++++++ admin-spa/src/routes/Settings/index.tsx | 25 +++++++++++++-- 6 files changed, 122 insertions(+), 19 deletions(-) create mode 100644 admin-spa/src/routes/Settings/General.tsx create mode 100644 admin-spa/src/routes/Settings/Payments.tsx create mode 100644 admin-spa/src/routes/Settings/Shipping.tsx diff --git a/admin-spa/src/App.tsx b/admin-spa/src/App.tsx index 5423d18..b2f2f1d 100644 --- a/admin-spa/src/App.tsx +++ b/admin-spa/src/App.tsx @@ -187,6 +187,9 @@ function useIsDesktop(minWidth = 1024) { // lg breakpoint } import SettingsIndex from '@/routes/Settings'; +import SettingsGeneral from '@/routes/Settings/General'; +import SettingsPayments from '@/routes/Settings/Payments'; +import SettingsShipping from '@/routes/Settings/Shipping'; function SettingsRedirect() { return ; @@ -279,13 +282,22 @@ function Header({ onFullscreen, fullscreen, showToggle = true }: { onFullscreen:
{window.WNW_API?.isDev ? 'Dev Server' : 'Production'}
{isStandalone && ( - + <> + + {__('WordPress')} + + + )} {showToggle && (