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
-
+