mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-27 12:26:33 -08:00
Fix tap reset checkbox
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user