Storybook Image fixes

This commit is contained in:
adilallo
2025-08-28 14:29:04 -06:00
parent 6a66f5f61f
commit 4d8e735398
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
"use client";
import React from "react";
import Image from "next/image";
const MiniCard = ({
children,
@@ -23,7 +24,7 @@ const MiniCard = ({
{/* Content for the inner panel */}
{panelContent && (
<div className="flex items-center justify-center w-full h-full">
<img
<Image
src={panelContent}
alt={
ariaLabel ||
@@ -32,6 +33,10 @@ const MiniCard = ({
"Feature icon"
}
className="max-w-[58px] max-h-[58px] w-auto h-auto object-contain"
unoptimized
width={0}
height={0}
sizes="100vw"
/>
</div>
)}