mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
Lint files based on updated rules
This commit is contained in:
parent
d45b01625b
commit
ec457d5125
57 changed files with 153 additions and 150 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { useCallback, useMemo, useState } from 'react';
|
||||
import { useCallback, useMemo, useState, KeyboardEvent, ChangeEvent } from 'react';
|
||||
import { Group } from '@mantine/core';
|
||||
import isElectron from 'is-electron';
|
||||
import debounce from 'lodash/debounce';
|
||||
|
|
@ -50,7 +50,7 @@ export const HotkeyManagerSettings = () => {
|
|||
const [selected, setSelected] = useState<BindingActions | null>(null);
|
||||
|
||||
const debouncedSetHotkey = debounce(
|
||||
(binding: BindingActions, e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
(binding: BindingActions, e: KeyboardEvent<HTMLInputElement>) => {
|
||||
e.preventDefault();
|
||||
const IGNORED_KEYS = ['Control', 'Alt', 'Shift', 'Meta', ' ', 'Escape'];
|
||||
const keys = [];
|
||||
|
|
@ -101,7 +101,7 @@ export const HotkeyManagerSettings = () => {
|
|||
]);
|
||||
|
||||
const handleSetGlobalHotkey = useCallback(
|
||||
(binding: BindingActions, e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
(binding: BindingActions, e: ChangeEvent<HTMLInputElement>) => {
|
||||
const updatedBindings = {
|
||||
...bindings,
|
||||
[binding]: { ...bindings[binding], isGlobal: e.currentTarget.checked },
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
import { ReactNode } from 'react';
|
||||
import { SettingsOptions } from '/@/renderer/features/settings/components/settings-option';
|
||||
|
||||
export type SettingOption = {
|
||||
control: JSX.Element;
|
||||
description: string | JSX.Element;
|
||||
control: ReactNode;
|
||||
description: string | ReactNode;
|
||||
isHidden?: boolean;
|
||||
note?: string;
|
||||
title: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue