Skip to content

Commit 3d767e0

Browse files
committed
Fix YouTube types.
1 parent be7de8b commit 3d767e0

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/components/ui/YouTube.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ const {
1212
...attrs
1313
} = Astro.props;
1414
15+
const attrId = attrs.id || '';
16+
1517
const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
1618
const className = `${defaultClass} ${userClass}`.trim();
1719
---
1820

19-
<Player:Props class={className} {...attrs} />
21+
<Player id={attrId} class={className} {...attrs} />

src/layouts/ScheduleLayout.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import Layout from "@layouts/Layout.astro";
3-
import Headline from "@ui/Headline.astro";
43
import Section from "@ui/Section.astro";
54
65
export interface Props {

src/pages/media/card/[slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { getCollection, getEntries, type CollectionEntry } from "astro:content";
2+
import { getCollection} from "astro:content";
33
import SocialMediaCard from "@components/SocialMediaCard.astro";
44
55
export async function getStaticPaths() {

src/pages/schedule.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { getEntry, getCollection } from "astro:content";
2+
import { getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55

src/pages/schedule/talks.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { type CollectionEntry, getCollection } from "astro:content";
2+
import { getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55
import { slugify } from '@utils/content';

src/pages/schedule/tutorials.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { getCollection } from "astro:content";
33
import Layout from "@layouts/ScheduleLayout.astro";
44
import ScheduleDay from "@components/schedule/day.astro";
55
import { slugify } from '@utils/content';
6-
import Headline from "@ui/Headline.astro"
76
87
export const getStaticPaths = async () => {
98
const sessions = await getCollection("sessions");

src/pages/speakers.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const description = "Our conference speakers organized alphabetically";
7070
</Prose>
7171

7272
{
73-
groupKeys.map((key, index) => (
73+
groupKeys.map((key, _index) => (
7474
<>
7575
<div id={`group-${key}`} class="pt-6">
7676
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6 mb-10">

src/utils/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function slugify(text) {
1+
export function slugify(text: string): string {
22
return text
33
.toString()
44
.toLowerCase()

0 commit comments

Comments
 (0)