Storybook Image fixes
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import ContentLockup from "./ContentLockup";
|
import ContentLockup from "./ContentLockup";
|
||||||
import MiniCard from "./MiniCard";
|
import MiniCard from "./MiniCard";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
const FeatureGrid = ({ title, subtitle, className = "" }) => {
|
const FeatureGrid = ({ title, subtitle, className = "" }) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
const MiniCard = ({
|
const MiniCard = ({
|
||||||
children,
|
children,
|
||||||
@@ -23,7 +24,7 @@ const MiniCard = ({
|
|||||||
{/* Content for the inner panel */}
|
{/* Content for the inner panel */}
|
||||||
{panelContent && (
|
{panelContent && (
|
||||||
<div className="flex items-center justify-center w-full h-full">
|
<div className="flex items-center justify-center w-full h-full">
|
||||||
<img
|
<Image
|
||||||
src={panelContent}
|
src={panelContent}
|
||||||
alt={
|
alt={
|
||||||
ariaLabel ||
|
ariaLabel ||
|
||||||
@@ -32,6 +33,10 @@ const MiniCard = ({
|
|||||||
"Feature icon"
|
"Feature icon"
|
||||||
}
|
}
|
||||||
className="max-w-[58px] max-h-[58px] w-auto h-auto object-contain"
|
className="max-w-[58px] max-h-[58px] w-auto h-auto object-contain"
|
||||||
|
unoptimized
|
||||||
|
width={0}
|
||||||
|
height={0}
|
||||||
|
sizes="100vw"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user