From 365492e92f779a9d94e19eef03864b170d7e7845 Mon Sep 17 00:00:00 2001 From: Albert Bausili Date: Mon, 19 Oct 2026 12:30:56 +0200 Subject: [PATCH] fix(dashboard): derive style prop type from IntrinsicElements for preact 10 and 11 JSX.CSSProperties is removed from the JSX namespace in preact 11 (CSSProperties moves to the package root), which fails astro check in the dependabot all-js-deps group bump. IntrinsicElements["div"]["style"] resolves on both majors. Refs #103 --- src/dashboard/components/Icons.tsx | 2 +- src/dashboard/components/Panel.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dashboard/components/Icons.tsx b/src/dashboard/components/Icons.tsx index 4199644..39a70aa 100644 --- a/src/dashboard/components/Icons.tsx +++ b/src/dashboard/components/Icons.tsx @@ -4,7 +4,7 @@ import type { JSX } from "preact"; interface IconProps { s?: number; class?: string; - style?: JSX.CSSProperties; + style?: JSX.IntrinsicElements["div"]["style"]; } export function Crown({ s = 13, class: c, style }: IconProps) { diff --git a/src/dashboard/components/Panel.tsx b/src/dashboard/components/Panel.tsx index 00cbffd..a296dac 100644 --- a/src/dashboard/components/Panel.tsx +++ b/src/dashboard/components/Panel.tsx @@ -6,7 +6,7 @@ interface PanelProps { actions?: ComponentChildren; nopad?: boolean; children: ComponentChildren; - style?: JSX.CSSProperties; + style?: JSX.IntrinsicElements["div"]["style"]; } export function Panel({ title, sub, actions, nopad, children, style }: PanelProps) {