From 68d1c830aa744f66c61ee820b5dca84f1b1e0c07 Mon Sep 17 00:00:00 2001 From: darbylee Date: Wed, 21 May 2025 10:18:58 +0800 Subject: [PATCH] Dashboard page in admin page --- frontend/src/app/App.js | 23 +++++++++++++++++++++++ frontend/src/utils/hooks/useSidebars.js | 5 +++++ 2 files changed, 28 insertions(+) diff --git a/frontend/src/app/App.js b/frontend/src/app/App.js index edd71a16..9e11ea5e 100644 --- a/frontend/src/app/App.js +++ b/frontend/src/app/App.js @@ -252,6 +252,29 @@ function App() { )} + + {role == ACCOUNT_TYPE.ADMIN ? ( +
+ + Looker insights + +
+ ) : ( + <> + {cur_time - startPathTime > 100 && ( + + )} + + )} +
{role == ACCOUNT_TYPE.SUPPORT ? ( diff --git a/frontend/src/utils/hooks/useSidebars.js b/frontend/src/utils/hooks/useSidebars.js index b505619e..e95958a0 100644 --- a/frontend/src/utils/hooks/useSidebars.js +++ b/frontend/src/utils/hooks/useSidebars.js @@ -311,6 +311,11 @@ export default function useSidebars(userType, user, t) { } } const adminSidebar = [ + { + label: "Dashboard", + key: `dashboard`, + icon: , + }, { label: t("common.group_message"), key: `admin_group_messages`,