website: fix typescript warnings when running astro check

see
https://github.com/withastro/astro/issues/10174#issuecomment-2026297879
for the why the tsconfig.json change
This commit is contained in:
Emmanuel Pelletier
2025-04-17 17:07:56 +02:00
parent 979ec77f34
commit 95e24b7207
6 changed files with 7 additions and 8 deletions

View File

@@ -315,7 +315,7 @@ const useSubsettedFont = import.meta.env.PUBLIC_USE_GAUFRE_SUBSETTED_FONT !== "0
{
services
.filter(({ enabled }) => !!enabled)
.map(({ id, name, url, beta }, i) => {
.map(({ id, name, url, beta }, i: number) => {
const logo =
logos[`/src/assets/logos/${id}.svg`] ||
logos[`/src/assets/logos/${id}.jpg`] ||

View File

@@ -1,4 +1,4 @@
import { useEffect, useState } from "react"
import { useState } from "react"
import { renderToStaticMarkup } from "react-dom/server"
import services from "@/data/services.json"
import Code from "./Code"