From 17a6eda4b12f481f2c816b403df0e8fba1674cc5 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 30 Apr 2025 11:43:29 +0200 Subject: [PATCH] Fix: remove unused classNames --- pkgs/webview-ui/app/eslint.config.mjs | 4 +++- .../webview-ui/app/src/Form/fieldset/index.tsx | 6 +++--- pkgs/webview-ui/app/src/Form/form/index.tsx | 6 +++--- .../app/src/components/MachineListItem.tsx | 8 ++++---- .../src/components/Sidebar/SidebarListItem.tsx | 4 ++-- .../app/src/components/accordion/accordion.css | 10 ++++++++++ .../app/src/components/accordion/index.tsx | 18 ++++++------------ .../app/src/components/button/css/index.css | 2 +- .../app/src/components/button/index.tsx | 3 --- pkgs/webview-ui/app/src/layout/header.tsx | 2 +- pkgs/webview-ui/app/src/layout/layout.tsx | 6 +++--- .../app/src/routes/machines/create.tsx | 6 +++--- .../webview-ui/app/src/routes/modules/list.tsx | 4 ++-- 13 files changed, 41 insertions(+), 38 deletions(-) create mode 100644 pkgs/webview-ui/app/src/components/accordion/accordion.css diff --git a/pkgs/webview-ui/app/eslint.config.mjs b/pkgs/webview-ui/app/eslint.config.mjs index 858cc8fec..6b35c3e35 100644 --- a/pkgs/webview-ui/app/eslint.config.mjs +++ b/pkgs/webview-ui/app/eslint.config.mjs @@ -3,7 +3,7 @@ import tseslint from "typescript-eslint"; import tailwind from "eslint-plugin-tailwindcss"; import pluginQuery from "@tanstack/eslint-plugin-query"; -export default tseslint.config( +const config = tseslint.config( eslint.configs.recommended, ...pluginQuery.configs["flat/recommended"], ...tseslint.configs.strict, @@ -30,3 +30,5 @@ export default tseslint.config( }, }, ); + +export default config; diff --git a/pkgs/webview-ui/app/src/Form/fieldset/index.tsx b/pkgs/webview-ui/app/src/Form/fieldset/index.tsx index 2fc21cf4b..fa5ee953a 100644 --- a/pkgs/webview-ui/app/src/Form/fieldset/index.tsx +++ b/pkgs/webview-ui/app/src/Form/fieldset/index.tsx @@ -2,11 +2,11 @@ import { JSX } from "solid-js"; import { Typography } from "@/src/components/Typography"; -type FieldsetProps = { +interface FieldsetProps { legend?: string; children: JSX.Element; class?: string; -}; +} export default function Fieldset(props: FieldsetProps) { return ( @@ -24,7 +24,7 @@ export default function Fieldset(props: FieldsetProps) { )} -
+
{props.children}
diff --git a/pkgs/webview-ui/app/src/Form/form/index.tsx b/pkgs/webview-ui/app/src/Form/form/index.tsx index 70c2021d2..9083335f2 100644 --- a/pkgs/webview-ui/app/src/Form/form/index.tsx +++ b/pkgs/webview-ui/app/src/Form/form/index.tsx @@ -368,7 +368,7 @@ export function ListValueDisplay( const bottomMost = () => props.idx === 0; return ( -