diff --git a/components/Blocks/DynamicContent/index.tsx b/components/Blocks/DynamicContent/index.tsx index bf816e3a8..a05f5551c 100644 --- a/components/Blocks/DynamicContent/index.tsx +++ b/components/Blocks/DynamicContent/index.tsx @@ -21,21 +21,16 @@ import LoadingSpinner from "@/components/LoadingSpinner" import type { DynamicContentProps } from "@/types/components/blocks/dynamicContent" import { DynamicContentEnum } from "@/types/enums/dynamicContent" -export default function DynamicContent({ - dynamic_content, - firstItem, -}: DynamicContentProps) { +export default function DynamicContent(props: DynamicContentProps) { return ( }> - {renderDynamicComponent(dynamic_content, firstItem)} + ) } -function renderDynamicComponent( - dynamic_content: DynamicContentProps["dynamic_content"], - firstItem: DynamicContentProps["firstItem"] -) { +function DynamicContentBlocks(props: DynamicContentProps) { + const { dynamic_content, firstItem } = props switch (dynamic_content.component) { case DynamicContentEnum.Blocks.components.current_benefits: return diff --git a/components/Footer/index.tsx b/components/Footer/index.tsx index 844de1b8f..1dfbe1572 100644 --- a/components/Footer/index.tsx +++ b/components/Footer/index.tsx @@ -12,11 +12,9 @@ export function preload() { export default function Footer() { return ( - -
- - -
-
+ ) }