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 a0f2d08417..fc99bba1d5 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 @@ -9,7 +9,6 @@ import Hero from "./hero/Hero"; function GodPraksisPage( props: GpEntryPageProps & { type: "frontpage" | "tema-page" } ) { - console.log(props); return ( /* TODO: Add surface-subtle to page-component props */ import("./Sticker"), { + ssr: false, +}); const trunc = (text, num_chars) => { return `${text.substring(0, num_chars)}${ diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleList.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleList.tsx index ae3598192f..86d83e4fb9 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleList.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleList.tsx @@ -1,3 +1,4 @@ +import ErrorBoundary from "@/error-boundary"; import { GpArticleViews } from "@/layout/god-praksis-page/types"; import ArticleGrid from "./ArticleGrid"; @@ -21,4 +22,10 @@ function ArticleList({ views }: GpArticleViews) { ); } -export default ArticleList; +export default function Component(props: GpArticleViews) { + return ( + + + + ); +} diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/articles/Sticker.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/articles/Sticker.tsx index da054988e8..f0c65eb960 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/articles/Sticker.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/articles/Sticker.tsx @@ -1,9 +1,6 @@ import clsx from "clsx"; -import dynamic from "next/dynamic"; -export const Sticker = dynamic(() => Promise.resolve(_Sticker), { ssr: false }); - -const _Sticker = ({ text = "NEW!", large = false }) => { +const Sticker = ({ text = "NEW!", large = false }) => { return ( <>