Skip to content

Commit

Permalink
chore: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Jun 4, 2024
1 parent 269eb6c commit aeec801
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/components/card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const { image, summary, link, title } = Astro.props;
{
image != null ? (
<NavLink aria-label={link.label} class="relative block aspect-[1.5]" href={link.href}>
{/* @ts-expect-error Upstream type issue. */}
<Image
alt=""
class="absolute inset-0 size-full object-cover"
Expand Down
2 changes: 1 addition & 1 deletion src/components/content/img.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { alt = "", src, ...rest } = Astro.props;
{
src != null ? (
src.startsWith("/") ? (
/** @ts-expect-error @see https://github.com/withastro/astro/issues/10780 */
/* @ts-expect-error Upstream type issue. */
// prettier-ignore
<Image {...rest} alt={alt} src={getImageImport(src)} />
) : (
Expand Down
1 change: 1 addition & 0 deletions src/components/content/partner-institution.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const { logo, label, href } = Astro.props;
---

<div class="grid grid-cols-[120px_1fr] items-center gap-x-4">
{/* @ts-expect-error Upstream type issue. */}
<Image alt="" class="max-h-20 object-contain" src={getImageImport(logo)} />
<div>
<a href={href}>{label}</a>
Expand Down
12 changes: 3 additions & 9 deletions src/components/page-card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@ const { image } = Astro.props;
<div class="my-2 border-t-[5px] border-brand bg-white">
{
image != null ? (
<Image
alt=""
class="h-60 w-full object-cover"
fetchpriority="high"
loading="eager"
sizes="1088px"
src={getImageImport(image)}
widths={[1088]}
/>
/* @ts-expect-error Upstream type issue. */
// prettier-ignore
<Image alt="" class="h-60 w-full object-cover" fetchpriority="high" loading="eager" sizes="1088px" src={getImageImport(image)} widths={[1088]} />
) : null
}
<div class="grid gap-y-4 px-8 pb-12 pt-6">
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const documentTitle = t("IndexPage.meta.title");
<MainContent>
<section class="relative border-y border-brand">
<div class="absolute inset-0 size-full bg-neutral-400">
{/* @ts-expect-error Upstream type issue. */}
<Image
alt=""
class="size-full object-cover"
Expand Down

0 comments on commit aeec801

Please sign in to comment.