diff --git a/web/src/components/Switch.jsx b/web/src/components/Switch.jsx index eaf42690d..db040f4a5 100644 --- a/web/src/components/Switch.jsx +++ b/web/src/components/Switch.jsx @@ -1,7 +1,7 @@ import { h } from 'preact'; import { useCallback, useState } from 'preact/hooks'; -export default function Switch({ checked, id, onChange, label, labelPosition = 'before' }) { +export default function Switch({ className, checked, id, onChange, label, labelPosition = 'before' }) { const [isFocused, setFocused] = useState(false); const handleChange = useCallback(() => { @@ -21,7 +21,7 @@ export default function Switch({ checked, id, onChange, label, labelPosition = ' return (