Skip to content

Commit fabe126

Browse files
committed
Fix props.
1 parent 4ef328c commit fabe126

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/ui/SafeImage.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Image } from 'astro:assets';
44
interface Props {
55
src: string;
66
alt?: string;
7-
width?: number;
8-
height?: number;
7+
width: number;
8+
height: number;
99
placeholder?: string;
1010
[key: string]: any;
1111
}

src/pages/speaker/[slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getCollection, getEntries } from "astro:content";
33
import Layout from "@layouts/Layout.astro";
44
import Prose from "@ui/Prose.astro";
5-
import { Image } from "astro:assets";
5+
import Image from "@ui/SafeImage.astro";
66
import Markdown from "@ui/Markdown.astro";
77
import Headline from "@ui/Headline.astro";
88
import Section from "@ui/Section.astro"

0 commit comments

Comments
 (0)