diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 884b51b3..1e39adf7 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -8,9 +8,9 @@ module.exports = { "plugin:@typescript-eslint/recommended", "eslint-config-prettier" ], - parser: '@typescript-eslint/parser', + parser: "@typescript-eslint/parser", parserOptions: { - project: ['./tsconfig.json'], + project: ["./tsconfig.json"] }, ignorePatterns: ["src-tauri/**/*"], settings: { @@ -25,13 +25,13 @@ module.exports = { } }, rules: { - "jsx-a11y/no-autofocus": "warn", + "jsx-a11y/no-autofocus": "off", "react/react-in-jsx-scope": "off", "import/no-unresolved": "off", "@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports", disallowTypeAnnotations: true, fixStyle: "separate-type-imports" - }], + }] } }; diff --git a/src-web/components/WorkspaceActionsDropdown.tsx b/src-web/components/WorkspaceActionsDropdown.tsx index 72b00e0e..300d4099 100644 --- a/src-web/components/WorkspaceActionsDropdown.tsx +++ b/src-web/components/WorkspaceActionsDropdown.tsx @@ -49,6 +49,17 @@ export const WorkspaceActionsDropdown = memo(function WorkspaceDropdown({ classN return ( + - ); }, diff --git a/src-web/hooks/Confirm.tsx b/src-web/hooks/Confirm.tsx index c23f78ba..14bd1811 100644 --- a/src-web/hooks/Confirm.tsx +++ b/src-web/hooks/Confirm.tsx @@ -19,12 +19,6 @@ const confirmButtonTexts: Record, string> = }; export function Confirm({ onHide, onResult, variant = 'confirm' }: ConfirmProps) { - const focusRef = (el: HTMLButtonElement | null) => { - setTimeout(() => { - el?.focus(); - }); - }; - const handleHide = () => { onResult(false); onHide(); @@ -40,7 +34,7 @@ export function Confirm({ onHide, onResult, variant = 'confirm' }: ConfirmProps) -