Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/blocks/block-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from "@/graphql/__generated__/operations";

import { CtaCardBlock } from "../cta-card-block";
import { FortroendemodellenFrom } from "../fortroendemodellen-v2";
interface blockListProps {
blocks:
| ContainerDataFragment["blocks"]
Expand All @@ -31,6 +32,7 @@ interface blockListProps {
| StartPageDataFragment["blocks"];
className?: string;
landingPage?: boolean;
formPage?: boolean;
}

/**
Expand Down Expand Up @@ -72,6 +74,7 @@ export const BlockList: FC<blockListProps> = ({
blocks,
className,
landingPage,
formPage,
}) => {
const { t } = useTranslation();

Expand Down Expand Up @@ -116,6 +119,7 @@ export const BlockList: FC<blockListProps> = ({
{...block}
key={getUniqueKey(block, index)}
landingPage={landingPage}
formPage={formPage}
/>
);
case "dataportal_Digg_ModuleList": {
Expand Down Expand Up @@ -165,6 +169,8 @@ export const BlockList: FC<blockListProps> = ({
);
case "dataportal_Digg_CTACardBlock":
return <CtaCardBlock {...block} key={getUniqueKey(block, index)} />;
case "dataportal_Digg_FoertroendemodellenBlock":
return <FortroendemodellenFrom key={getUniqueKey(block, index)} />;
default: {
const unknownBlock = block as { __typename: string; id: string };
return (
Expand Down
Loading
Loading