fix: cleanup
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user