fix: allow toggle switch by clicking label (#185)

This commit is contained in:
Whitewater
2024-08-02 13:03:20 +08:00
committed by GitHub
parent 60f8347eec
commit 5d98eb4230
@@ -36,6 +36,7 @@ export const SettingSwitch: Component<{
>
<Label htmlFor={id}>{label}</Label>
<Switch
id={id}
checked={checked}
onCheckedChange={onCheckedChange}
className="cursor-auto"