Fix tap reset checkbox

This commit is contained in:
loucass003 committed 2026-10-17 06:47:24 +02:00
1 parent f45889f993
commit bd08648046
1 file changed
+3 -12
@@ -23,7 +23,7 @@ import { selectAtom } from 'jotai/utils';
import { useLocaleConfig } from '@/i18n/config';
import classNames from 'classnames';
import { Typography } from '@/components/commons/Typography';
import { CheckboxInternal } from '@/components/commons/Checkbox';
import { CheckBox } from '@/components/commons/Checkbox';
import {
FullResetIcon,
MountingResetIcon,
@@ -284,20 +284,11 @@ export function TapDetectionSettings({
<SettingResetButton {...kindReset(id)} />
</div>
<div className="col-start-3 row-start-1 justify-self-end flex">
<CheckboxInternal
<CheckBox
variant="toggle"
control={control}
name={`${id}Enabled`}
id={`tap-${id}`}
checked={enabled}
onChange={(
event: React.ChangeEvent<HTMLInputElement>
) =>
setValue(
`${id}Enabled` as keyof TapDetectionForm,
event.currentTarget.checked,
{ shouldDirty: true }
)
}
/>
</div>
</div>