From d780a901fff1972d3018398adc6b39e6d5c03500 Mon Sep 17 00:00:00 2001 From: Andy Leuchtturm <d-leuchtturm@gmx.net> Date: Thu, 28 Sep 2023 17:13:31 +0200 Subject: [PATCH] test ob das Image-Objekt die Fehlerquelle ist. --- components/it-standards/LifecyclePicture.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/it-standards/LifecyclePicture.tsx b/components/it-standards/LifecyclePicture.tsx index d0f011e..0ba6ad3 100644 --- a/components/it-standards/LifecyclePicture.tsx +++ b/components/it-standards/LifecyclePicture.tsx @@ -1,26 +1,27 @@ import { Tag } from 'types/content/' +/* import useImgPath from 'shared/use-img-path' import Image from 'next/image' -import useImgPath from 'shared/use-img-path' const { getImgPath } = useImgPath() const imageLoader = ({ src, width, quality }) => { return `${src}?w=${width}&q=${quality || 75}` -} +} */ export default function LifecyclePicture(lifecyclephase:Tag) { /* beim tag 'status' soll das zugehĂśrige Lebenszyklus-Bild ausgegeben werden */ const imagePath = `/img/standards/lifecycle/${lifecyclephase.value}.svg` return ( <div className="border border-gray-300 rounded-lg overflow-hidden py-2"> - {/* Die Next.js Image-Komponente verwendet das "src" Attribut */} + {/* Die Next.js Image-Komponente verwendet das "src" Attribut <Image loader={imageLoader} src={getImgPath(imagePath)} alt={`Bild fĂźr Tag ${lifecyclephase.value}`} width={500} // Breite des Bildes height={0} // HĂśhe des Bildes - /> + /> */} + <p>{imagePath}</p> </div> ) } -- GitLab