From 54e39a436bca289b11517c482db5aecaeb579056 Mon Sep 17 00:00:00 2001 From: mintsweet <0x1304570@gmail.com> Date: Tue, 8 Oct 2024 22:13:59 +1300 Subject: [PATCH] refactor: remove the environment variable copyright hide --- config-ui/env.example | 1 - config-ui/src/routes/layout/layout.tsx | 26 ++++++++++---------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/config-ui/env.example b/config-ui/env.example index 078e902a541..723a06fd3b5 100644 --- a/config-ui/env.example +++ b/config-ui/env.example @@ -19,7 +19,6 @@ # DEVLAKE_PATH_PREFIX= # DEVLAKE_TITLE_CUSTOM= # DEVLAKE_COLOR_CUSTOM= -# DEVLAKE_COPYRIGHT_HIDE= # All plugins are loaded by default, optional plugins can be loaded # eg. DEVLAKE_PLUGINS=github,gitlab diff --git a/config-ui/src/routes/layout/layout.tsx b/config-ui/src/routes/layout/layout.tsx index 2591722f5b5..b33b563ed17 100644 --- a/config-ui/src/routes/layout/layout.tsx +++ b/config-ui/src/routes/layout/layout.tsx @@ -113,28 +113,22 @@ export const Layout = () => { background: 'transparent', }} > - {headerItems - .filter((item) => - import.meta.env.DEVLAKE_COPYRIGHT_HIDE ? !['Dashboards', 'GitHub', 'Slack'].includes(item.label) : true, - ) - .map((item, i, arr) => ( - - {item.icon} - {item.label} - {i !== arr.length - 1 && } - - ))} + {headerItems.map((item, i, arr) => ( + + {item.icon} + {item.label} + {i !== arr.length - 1 && } + + ))}
- {!import.meta.env.DEVLAKE_COPYRIGHT_HIDE && ( - - )} +