fix: cleanup

This commit is contained in:
Christel Westerberg
2024-02-13 16:06:37 +01:00
parent 4b193541b2
commit 367dffc41d
7 changed files with 21 additions and 14 deletions

View File

@@ -7,18 +7,17 @@ import type { HeroProps } from "@/types/components/current/hero"
export default function Hero({ images }: HeroProps) {
return (
<div className={styles.wrapper} aria-label="Hero" tabIndex={0}>
<picture className={styles.picture}>
{images.map(({ node: image }) => (
{images.map(({ node: image }) => (
<picture className={styles.picture} key={image.title}>
<Image
alt={image.title}
className={styles.heroImage}
height={image.dimension.height}
key={image.title}
src={image.url}
width={image.dimension.width}
/>
))}
</picture>
</picture>
))}
</div>
)
}