diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/GodPraksisPage.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/GodPraksisPage.tsx index 150cf03d46..a754f9206d 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/GodPraksisPage.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/GodPraksisPage.tsx @@ -27,10 +27,18 @@ function GodPraksisPage({ articles, heroNav, tema }: GodPraksisPageProps) { {tema?.description} - + + {tema?.undertema?.length > 0 && ( + undertema.title)} + type="undertema" + /> + )} + + diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/chips/ChipNav.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/chips/ChipNav.tsx index 5e0eb88f52..958b306a41 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/chips/ChipNav.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/chips/ChipNav.tsx @@ -3,6 +3,7 @@ import omit from "lodash/omit"; import { useRouter } from "next/router"; import { useId } from "react"; import { Chips, HGrid, Label } from "@navikt/ds-react"; +import { capitalize } from "@/utils"; import styles from "./Chips.module.css"; import ScrollFade from "./ScrollFade"; @@ -29,7 +30,7 @@ function ChipNav({ options, type }: ChipsNavProps) { return (
diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/hero/Hero.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/hero/Hero.tsx index 679ec8d6e0..86fb5e2a85 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/hero/Hero.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/hero/Hero.tsx @@ -5,13 +5,12 @@ import { GpTemaT, HeroNavT } from "../types"; type HeroProps = { children?: string; - /* TODO: Fikser tema-type */ + /* TODO: Fikse tema-type */ tema?: GpTemaT["tema"]; } & HeroNavT; function Hero({ children, heroNav, tema }: HeroProps) { const router = useRouter(); - console.log(tema); return ( slug.current == $slug && count(*[_type == "aksel_artikkel" && references(^._id)]) > 0]{ + title, + description + } } } `;