diff --git a/components/landingPage/ui/heroImage.tsx b/components/landingPage/ui/heroImage.tsx index c0f0b633..9f03e8aa 100644 --- a/components/landingPage/ui/heroImage.tsx +++ b/components/landingPage/ui/heroImage.tsx @@ -1,8 +1,6 @@ import Image from "next/image"; import { FC, ReactNode } from "react"; -import { mainColorMdBgClass } from "../../../lib/constants/colors"; -import { siteCodename } from "../../../lib/utils/env"; import { createItemSmartLink } from "../../../lib/utils/smartLinkUtils"; type Props = Readonly<{ @@ -29,7 +27,7 @@ export const HeroImage: FC = (props) => ( />
{props.children}
diff --git a/components/listingPage/ArticleItem.tsx b/components/listingPage/ArticleItem.tsx index 96978b5d..6c4accd4 100644 --- a/components/listingPage/ArticleItem.tsx +++ b/components/listingPage/ArticleItem.tsx @@ -2,9 +2,7 @@ import Image from "next/image" import Link from "next/link"; import { FC } from "react"; -import { mainColorButtonClass, mainColorGroupHoverClass } from "../../lib/constants/colors"; import { formatDate } from "../../lib/utils/dateTime"; -import { siteCodename } from "../../lib/utils/env"; import { StandaloneSmartLinkButton } from "../shared/StandaloneSmartLinkButton"; type Props = Readonly<{ @@ -41,7 +39,7 @@ export const ArticleItem: FC = props => (
{props.title}

{props.description}

- diff --git a/components/listingPage/ProductItem.tsx b/components/listingPage/ProductItem.tsx index 3fcbafa5..bd9ce87d 100644 --- a/components/listingPage/ProductItem.tsx +++ b/components/listingPage/ProductItem.tsx @@ -2,8 +2,6 @@ import Image from "next/image" import Link from "next/link"; import { FC } from "react"; -import { mainColorButtonClass, mainColorGroupHoverClass } from "../../lib/constants/colors"; -import { siteCodename } from "../../lib/utils/env"; import { StandaloneSmartLinkButton } from "../shared/StandaloneSmartLinkButton"; type Props = Readonly<{ @@ -36,7 +34,7 @@ export const ProductItem: FC = props => ( /> {props.price &&

{`${props.price}€`}

} - + diff --git a/components/shared/Fact.tsx b/components/shared/Fact.tsx index dbe1e681..dd10b8c3 100644 --- a/components/shared/Fact.tsx +++ b/components/shared/Fact.tsx @@ -1,8 +1,6 @@ import Image from "next/image"; import { FC } from "react"; -import { mainColorAfterBgClass } from "../../lib/constants/colors"; -import { siteCodename } from "../../lib/utils/env"; import { createElementSmartLink, createItemSmartLink, @@ -27,7 +25,7 @@ export const FactComponent: FC = (props) => { > {image && (
{ return ( diff --git a/components/shared/richText/Callout.tsx b/components/shared/richText/Callout.tsx index 1fd47dfd..2db2ccc1 100644 --- a/components/shared/richText/Callout.tsx +++ b/components/shared/richText/Callout.tsx @@ -7,10 +7,8 @@ import { FC } from "react"; import { calloutTypeColor, - mainColorBorderClass, } from "../../../lib/constants/colors"; import { isCalloutType } from "../../../lib/types/calloutType"; -import { siteCodename } from "../../../lib/utils/env"; import { Component_Callout, contentTypes } from "../../../models"; import { RichTextElement } from "./RichTextElement"; @@ -20,7 +18,7 @@ type Props = Readonly<{ export const CalloutComponent: FC = (props) => (
{renderTypeIcon(props.item)} diff --git a/components/shared/richText/RichTextElement.tsx b/components/shared/richText/RichTextElement.tsx index b723fcef..f675d1d6 100644 --- a/components/shared/richText/RichTextElement.tsx +++ b/components/shared/richText/RichTextElement.tsx @@ -19,8 +19,6 @@ import Image from "next/image"; import { FC } from "react"; import { sanitizeFirstChildText } from "../../../lib/anchors"; -import { mainColorAnchor } from "../../../lib/constants/colors"; -import { siteCodename } from "../../../lib/utils/env"; import { Action, Block_ContentChunk, @@ -43,7 +41,6 @@ type ElementProps = Readonly<{ export const createDefaultResolvers = ( element: Elements.RichTextElement, isElementInsideTable: boolean = false, - siteCodename: keyof typeof mainColorAnchor, componentIndex = 0 ): Partial => ({ types: { @@ -180,7 +177,7 @@ export const createDefaultResolvers = ( id={sanitizeFirstChildText(value)} > {children} @@ -193,7 +190,7 @@ export const createDefaultResolvers = ( id={sanitizeFirstChildText(value)} > {children} @@ -206,7 +203,7 @@ export const createDefaultResolvers = ( id={sanitizeFirstChildText(value)} > {children} @@ -219,7 +216,7 @@ export const createDefaultResolvers = ( id={sanitizeFirstChildText(value)} > {children} @@ -232,7 +229,7 @@ export const createDefaultResolvers = ( id={sanitizeFirstChildText(value)} > {children} @@ -245,7 +242,7 @@ export const createDefaultResolvers = ( id={sanitizeFirstChildText(value)} > {children} @@ -261,7 +258,7 @@ export const RichTextElement: FC = (props) => { return ( ); }; @@ -275,10 +272,6 @@ type RichTextValueProps = Readonly<{ const RichTextValue: FC = (props) => ( ); diff --git a/components/shared/ui/footer.tsx b/components/shared/ui/footer.tsx index 2c83140e..65f7b8f3 100644 --- a/components/shared/ui/footer.tsx +++ b/components/shared/ui/footer.tsx @@ -1,14 +1,11 @@ import { FC } from "react"; -import { mainColorBgClass } from "../../../lib/constants/colors"; -import { siteCodename } from "../../../lib/utils/env"; - type Props = Readonly<{ className?: string; }>; export const Footer: FC = () => ( -