From ec17512e76da1c0360fdd3e0519531d640d3b4b8 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Sun, 1 Dec 2024 10:23:19 +0100 Subject: [PATCH] chore(ui): remove unused component --- .../common/brand/brand-dark-glossy.svg | 32 ---------------- ui/src/components/common/brand/brand-dark.svg | 24 ------------ .../components/common/brand/brand-glossy.svg | 32 ---------------- ui/src/components/common/brand/brand.svg | 24 ------------ ui/src/components/common/brand/index.tsx | 38 ------------------- 5 files changed, 150 deletions(-) delete mode 100644 ui/src/components/common/brand/brand-dark-glossy.svg delete mode 100644 ui/src/components/common/brand/brand-dark.svg delete mode 100644 ui/src/components/common/brand/brand-glossy.svg delete mode 100644 ui/src/components/common/brand/brand.svg delete mode 100644 ui/src/components/common/brand/index.tsx diff --git a/ui/src/components/common/brand/brand-dark-glossy.svg b/ui/src/components/common/brand/brand-dark-glossy.svg deleted file mode 100644 index 67b5b69aa..000000000 --- a/ui/src/components/common/brand/brand-dark-glossy.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ui/src/components/common/brand/brand-dark.svg b/ui/src/components/common/brand/brand-dark.svg deleted file mode 100644 index 7f5d9faf6..000000000 --- a/ui/src/components/common/brand/brand-dark.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ui/src/components/common/brand/brand-glossy.svg b/ui/src/components/common/brand/brand-glossy.svg deleted file mode 100644 index b790d98ed..000000000 --- a/ui/src/components/common/brand/brand-glossy.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ui/src/components/common/brand/brand.svg b/ui/src/components/common/brand/brand.svg deleted file mode 100644 index 1f8b62e6c..000000000 --- a/ui/src/components/common/brand/brand.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ui/src/components/common/brand/index.tsx b/ui/src/components/common/brand/index.tsx deleted file mode 100644 index bcb361db5..000000000 --- a/ui/src/components/common/brand/index.tsx +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2023 Anass Bouassaba. -// -// Use of this software is governed by the Business Source License -// included in the file LICENSE in the root of this repository. -// -// As of the Change Date specified in that file, in accordance with -// the Business Source License, use of this software will be governed -// by the GNU Affero General Public License v3.0 only, included in the file -// AGPL-3.0-only in the root of this repository. -import { useCallback } from 'react' -import { CenterProps, useColorMode } from '@chakra-ui/react' -import cx from 'classnames' -import BrandDarkGlossySvg from './brand-dark-glossy.svg?react' -import BrandDarkSvg from './brand-dark.svg?react' -import BrandGlossySvg from './brand-glossy.svg?react' -import BrandSvg from './brand.svg?react' - -type LogoProps = CenterProps & { - isGlossy?: boolean -} - -const Brand = ({ isGlossy = false }: LogoProps) => { - const { colorMode } = useColorMode() - const renderSvg = useCallback(() => { - if (isGlossy) { - return colorMode === 'dark' ? : - } else { - return colorMode === 'dark' ? : - } - }, [colorMode, isGlossy]) - return ( -
- {renderSvg()} -
- ) -} - -export default Brand