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) {