Skip to content

Commit bbeda93

Browse files
authored
Fix errors and warnings from astro check. (#1203)
1 parent 9569b27 commit bbeda93

20 files changed

+21
-35
lines changed

src/components/Footer.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
import { Fullbleed } from "./layout/fullbleed";
3-
42
import links from "../data/links.json";
53
import { EPSLogo } from "./logo/eps-logo";
64

src/components/Header.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { promises as fs } from "fs";
32
import { NavItems } from "@components/nav-items";
43
import HeaderActions from "@components/header/header-actions.astro";
54
import HeaderLogo from "@components/header/header-logo.astro";

src/components/Search.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import SearchComponent from "astro-pagefind/components/Search";
3-
import Button from "@ui/Button.astro";
43
import Modal from "@components/Modal.astro";
54
65
---

src/components/SocialMediaCard.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
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">
10-
<image href="http://localhost:4321/social/bg.png" width="900" height="900" />
9+
<image href="/social/bg.png" width="900" height="900" />
1110
</svg>
1211
{
1312
entry.data.avatar ? (

src/components/button-link/button-link.astro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ const {
1515
className = "",
1616
secondary = false,
1717
disabled = false,
18-
isExternal,
1918
} = Astro.props;
20-
const resolvedIsExternal =
21-
isExternal !== undefined ? isExternal : url?.startsWith("http");
2219
---
2320

2421
<a

src/components/header/header-actions.astro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import Button from "@ui/Button.astro";
3-
import HeaderButton from "./header-button.astro";
43
import Icon from "@ui/Icon.astro";
54
65
export interface Props {
@@ -11,8 +10,6 @@ const { mobile = false }: Props = Astro.props;
1110
1211
const IS_LIVE = false;
1312
14-
15-
//<Button id="searchButton" icon="search" iconSize="fa-xl" clear title="Search (Crtl+K)"></Button>
1613
---
1714

1815
<div class="flex items-center justify-end gap-2 h-[85px] w-1/3">

src/components/header/header-logo.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
import { Logo } from "../logo";
3-
42
interface Props {
53
inverted?: boolean;
64
}

src/components/hero2/hero.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import heroImage from "./conference_photo.jpg";
44
55
import IconWithLabel from "./icon-label.astro";
66
import Button from "@ui/Button.astro";
7-
import Section from "@ui/Section.astro";
87
98
const action1 = "/tickets";
109
const action2 = "/sponsorship/sponsor/";

src/components/schedule/day.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11

22
---
3-
import { type CollectionEntry, getEntry, getCollection } from "astro:content";
3+
import { type CollectionEntry, getCollection } from "astro:content";
44
import Break from "@components/schedule/break.astro";
55
import Session from "@components/schedule/session.astro";
66
import { addMinutes, differenceInMinutes, parseISO } from "date-fns";
7-
//import { Title } from "@components/typography/title";
87
import Headline from "@components/ui/Headline.astro";
9-
import Button from "@ui/Button.astro";
10-
import { Select } from "@components/form/select";
118
import { formatInTimeZone } from "date-fns-tz";
129

1310

src/components/schedule/session.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
2-
import { formatInTimeZone } from "date-fns-tz";
32
import Speakers from "./speakers.astro";
43
import { slugify } from "@utils/content";
5-
import Icon from "@ui/Icon.astro";
64
75
export interface props {
86
style: any;

0 commit comments

Comments
 (0)