This is an automated email from the ASF dual-hosted git repository. mintsweet pushed a commit to branch feat-env-config in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 5b77d953166f0194557214ab09923877b3e63cd3 Author: mintsweet <[email protected]> AuthorDate: Fri Jan 5 15:05:48 2024 +1300 refactor(config-ui): remove DEVLAKE_LOGO config --- config-ui/env.example | 1 - config-ui/src/components/logo/index.tsx | 2 +- config-ui/src/vite-env.d.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config-ui/env.example b/config-ui/env.example index 463359c94..d91f2c16e 100644 --- a/config-ui/env.example +++ b/config-ui/env.example @@ -1,5 +1,4 @@ # About Basic Information -# DEVLAKE_LOGO= # DEVLAKE_COPYRIGHT= # DEVLAKE_PRIMARY_COLOR= diff --git a/config-ui/src/components/logo/index.tsx b/config-ui/src/components/logo/index.tsx index f60e8ac98..bc68a8e65 100644 --- a/config-ui/src/components/logo/index.tsx +++ b/config-ui/src/components/logo/index.tsx @@ -32,7 +32,7 @@ interface Props { export const Logo = ({ style }: Props) => { return ( <Wrapper style={style}> - <img src={import.meta.env.DEVLAKE_LOGO ?? LogoImg} alt="Logo" /> + <img src={LogoImg} alt="Logo" /> </Wrapper> ); }; diff --git a/config-ui/src/vite-env.d.ts b/config-ui/src/vite-env.d.ts index cb6ab4665..09795c693 100644 --- a/config-ui/src/vite-env.d.ts +++ b/config-ui/src/vite-env.d.ts @@ -20,7 +20,6 @@ /// <reference types="vite-plugin-svgr/client" /> interface ImportMetaEnv { - readonly DEVLAKE_LOGO: string; readonly DEVLAKE_COPYRIGHT: string; readonly DEVLAKE_PRIMARY_COLOR: string; readonly DEVLAKE_PLUGINS: string;
