From 128e5e4905fa146d1a4e2ebc069bf68ac1f80013 Mon Sep 17 00:00:00 2001 From: Eirik Lillebo Date: Wed, 2 Oct 2024 10:08:03 +0200 Subject: [PATCH] fix(project): removing use of components instead of just nullifying them --- .../components/llm-search/components/result-item/index.tsx | 5 ----- libs/ui/src/lib/catalog-symbol/index.tsx | 2 -- libs/ui/src/lib/catalogs-menu/index.tsx | 6 ------ libs/ui/src/lib/footer/index.tsx | 6 ------ 4 files changed, 19 deletions(-) diff --git a/apps/frontpage/src/app/[lang]/components/llm-search/components/result-item/index.tsx b/apps/frontpage/src/app/[lang]/components/llm-search/components/result-item/index.tsx index ef9ea135..c3d5d76c 100644 --- a/apps/frontpage/src/app/[lang]/components/llm-search/components/result-item/index.tsx +++ b/apps/frontpage/src/app/[lang]/components/llm-search/components/result-item/index.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { Heading } from '@digdir/designsystemet-react'; import Markdown from '@fdk-frontend/ui/markdown'; -import CatalogSymbol from '@fdk-frontend/ui/catalog-symbol'; import styles from './result-item.module.scss'; @@ -30,10 +29,6 @@ const ResultItem = ({ item, baseUri, ...rest }: ResultItemProps & React.AnchorHT className={styles.link} {...rest} > -
) => { - return null; switch (catalog) { case 'datasets': return ; @@ -30,7 +29,6 @@ const CatalogIcon = ({ catalog, ...rest }: CatalogSymbolProps & React.SVGProps) => { - return null; return (
{ size='xxsmall' level={3} > - {item.title} diff --git a/libs/ui/src/lib/footer/index.tsx b/libs/ui/src/lib/footer/index.tsx index 9efd3459..98a24c4d 100644 --- a/libs/ui/src/lib/footer/index.tsx +++ b/libs/ui/src/lib/footer/index.tsx @@ -1,9 +1,7 @@ import { Link, Heading } from '@digdir/designsystemet-react'; import { ExternalLinkIcon } from '@navikt/aksel-icons'; import { Dictionary } from '@fdk-frontend/dictionaries'; -import { CatalogTypes } from '@fdk-frontend/types'; -import { CatalogIcon } from '../catalog-symbol'; import { LogoLink } from '../logo'; import getMainMenuData from '../main-menu/data'; import LanguageSwitcher from '../language-switcher'; @@ -42,10 +40,6 @@ const Footer = ({ dictionary, baseUri }: FooterProps) => { className={styles.iconLink} href={item.href} > - {item.title}