chore(website): fix typecheck issues

This commit is contained in:
Elian Doran
2025-09-27 22:36:26 +03:00
parent a15aab395a
commit 5ac2892e34
15 changed files with 45 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
import { ComponentChildren } from "preact";
import Icon from "./Icon";
import Icon from "./Icon.js";
import "./Button.css";
interface LinkProps {

View File

@@ -1,6 +1,6 @@
import { ComponentChildren, HTMLAttributes } from "preact";
import { Link } from "./Button";
import Icon from "./Icon";
import { Link } from "./Button.js";
import Icon from "./Icon.js";
interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
title: ComponentChildren;

View File

@@ -1,6 +1,6 @@
import { getRecommendedDownload } from "../download-helper";
import { getRecommendedDownload } from "../download-helper.js";
import "./DownloadButton.css";
import Button from "./Button";
import Button from "./Button.js";
import downloadIcon from "../assets/boxicons/bx-arrow-in-down-square-half.svg?raw";
import packageJson from "../../../../package.json" with { type: "json" };

View File

@@ -1,10 +1,10 @@
import "./Footer.css";
import Icon from "./Icon";
import Icon from "./Icon.js";
import githubIcon from "../assets/boxicons/bx-github.svg?raw";
import githubDiscussionsIcon from "../assets/boxicons/bx-discussion.svg?raw";
import matrixIcon from "../assets/boxicons/bx-message-dots.svg?raw";
import redditIcon from "../assets/boxicons/bx-reddit.svg?raw";
import { Link } from "./Button";
import { Link } from "./Button.js";
export default function Footer() {
return (
@@ -55,7 +55,7 @@ export function SocialButtons({ className, withText }: { className?: string, wit
)
}
function SocialButton({ name, iconSvg, url, withText }: { name: string, iconSvg: string, url: string, withText: boolean }) {
function SocialButton({ name, iconSvg, url, withText }: { name: string, iconSvg: string, url: string, withText?: boolean }) {
return (
<Link
className="social-button"

View File

@@ -1,12 +1,12 @@
import "./Header.css";
import { useLocation } from 'preact-iso';
import DownloadButton from './DownloadButton';
import { Link } from "./Button";
import Icon from "./Icon";
import DownloadButton from './DownloadButton.js';
import { Link } from "./Button.js";
import Icon from "./Icon.js";
import logoPath from "../assets/icon-color.svg";
import menuIcon from "../assets/boxicons/bx-menu.svg?raw";
import { useState } from "preact/hooks";
import { SocialButtons } from "./Footer";
import { SocialButtons } from "./Footer.js";
interface HeaderLink {
url: string;