We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef328c commit fabe126Copy full SHA for fabe126
src/components/ui/SafeImage.astro
@@ -4,8 +4,8 @@ import { Image } from 'astro:assets';
4
interface Props {
5
src: string;
6
alt?: string;
7
- width?: number;
8
- height?: number;
+ width: number;
+ height: number;
9
placeholder?: string;
10
[key: string]: any;
11
}
src/pages/speaker/[slug].astro
@@ -2,7 +2,7 @@
2
import { getCollection, getEntries } from "astro:content";
3
import Layout from "@layouts/Layout.astro";
import Prose from "@ui/Prose.astro";
-import { Image } from "astro:assets";
+import Image from "@ui/SafeImage.astro";
import Markdown from "@ui/Markdown.astro";
import Headline from "@ui/Headline.astro";
import Section from "@ui/Section.astro"
0 commit comments