Skip to content

Commit 8b5e085

Browse files
committed
Fix TS warnings.
1 parent 9569b27 commit 8b5e085

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/SocialMediaCard.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
3-
import { Image } from "astro:assets";
2+
import { getEntries, type CollectionEntry } from "astro:content";
43
54
const { entry } = Astro.props;
65
7-
const sessions = await getEntries(entry.data.submissions);
6+
const sessions: CollectionEntry<"sessions">[]= await getEntries(entry.data.submissions);
87
---
98
<svg width="900" height="900" class="h-full w-full -z-10">
109
<image href="http://localhost:4321/social/bg.png" width="900" height="900" />

0 commit comments

Comments
 (0)