fix: update API of toolbox component

This commit is contained in:
Stefan Imhoff
2023-05-18 16:52:34 +02:00
parent 33663af75e
commit ae948029f4

View File

@@ -1,5 +1,5 @@
---
import { Image } from '@astrojs/image/components';
import { Img } from 'astro-imagetools/components';
import { Link } from '.';
import type { ToolsProps } from '../data/tools';
@@ -16,14 +16,7 @@ const { tools } = Astro.props;
tools.map(({ name, url, image }) => (
<li>
<Link href={url} title={name}>
<Image
alt={name}
aspectRatio="1:1"
format="avif"
height={200}
src={image}
width={200}
/>
<Img alt={name} aspect={1} format="avif" height={200} src={image} width={200} />
</Link>
</li>
))