diff --git a/knip.jsonc b/knip.jsonc index 490132bec..9b24f0888 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -29,7 +29,6 @@ "src/chat/preferences.functions.ts", "src/chat/server/semantic-history.ts", "src/chat/skill-identifiers.ts", - "src/components/BackgroundGradient.tsx", "src/components/BlockWithFeedback.tsx", "src/components/BlogAuthorFilter.tsx", "src/components/BlogSearchFilter.tsx", diff --git a/src/components/BackgroundGradient.tsx b/src/components/BackgroundGradient.tsx deleted file mode 100644 index 325e9f8aa..000000000 --- a/src/components/BackgroundGradient.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import { twMerge } from 'tailwind-merge' -import { useLocation, useParams } from '@tanstack/react-router' -import { findLibrary } from '~/libraries' - -export function BackgroundGradient() { - let libraryId = useParams({ - select: (p) => p.libraryId, - strict: false, - }) as string - const location = useLocation() - - if (!libraryId) { - const pathnameLibraryId = location.pathname.split('/')[1] - - if (pathnameLibraryId) { - libraryId = pathnameLibraryId - } - } - - const library = findLibrary(libraryId) - - return ( -
- ) -}