Skip to content
Snippets Groups Projects
Commit aff39583 authored by Andy Leuchtturm's avatar Andy Leuchtturm
Browse files

implement getImgPath

parent b3cea7e9
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
Pipeline #56106 failed
import { Tag } from 'types/content/'
import Image from 'next/image'
import useImgPath from 'shared/use-img-path'
const { getImgPath } = useImgPath()
export default function LifecyclePicture(lifecyclephase:Tag) {
/* beim tag 'status' soll das zugehörige Lebenszyklus-Bild ausgegeben werden */
......@@ -8,7 +11,7 @@ export default function LifecyclePicture(lifecyclephase:Tag) {
<div className="border border-gray-300 rounded-lg overflow-hidden py-2">
{/* Die Next.js Image-Komponente verwendet das "src" Attribut */}
<Image
src={imagePath}
src={getImgPath(imagePath)}
alt={`Bild für Tag ${lifecyclephase.value}`}
width={500} // Breite des Bildes
height={0} // Höhe des Bildes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment