fix: change `Switch.props.ref` to optional prop to align with `OriginalSwitch` (#17443)

pull/17485/head
yusheng chen 10 months ago committed by GitHub
parent 6efa882ca3
commit dc9194ca00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,7 +20,7 @@ const Switch = (
disabled = false,
className,
}: SwitchProps & {
ref: React.RefObject<HTMLButtonElement>;
ref?: React.RefObject<HTMLButtonElement>;
},
) => {
const [enabled, setEnabled] = useState(defaultValue)

Loading…
Cancel
Save