From 054cb48e4c0000c2273381e8298941d3f7d6d64a Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Tue, 26 Aug 2025 21:36:00 +0200 Subject: [PATCH] [yoga-18] about.us.with.boxes.component.tsx fix aboutus_image image --- .../src/components/about.us.with.boxes.component.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/yoga-app/src/components/about.us.with.boxes.component.tsx b/yoga-app/src/components/about.us.with.boxes.component.tsx index 37b47ef..ba48870 100644 --- a/yoga-app/src/components/about.us.with.boxes.component.tsx +++ b/yoga-app/src/components/about.us.with.boxes.component.tsx @@ -2,13 +2,17 @@ import YogaImageComponent from "@/components/yoga.image.component"; import { YogaAboutUsWithBoxesComponent_Plain } from "@/types/generated-strapi-interfaces/api/yoga-about-us-with-boxes-component"; +import {StrapiFile} from "@/types/types"; +import strapiApi from "@/api/strapi/strapi-api"; export interface Props{ config: YogaAboutUsWithBoxesComponent_Plain } -export default function AboutUsWithBoxesComponent({ config: {title,header,description, box1,box2,box3,box4}}: Props){ - +export default function AboutUsWithBoxesComponent({ config: {title,header,description, image, box1,box2,box3,box4}}: Props){ + + const imageFile: StrapiFile = image as StrapiFile; + const imageUrl = strapiApi.getImageUrl(imageFile?.url) return (
@@ -16,7 +20,7 @@ export default function AboutUsWithBoxesComponent({ config: {title,header,descri
-
+