fix: change Switch.props.ref to optional prop to align with OriginalSwitch (#17443)
This commit is contained in:
parent
6efa882ca3
commit
dc9194ca00
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ const Switch = (
|
||||||
disabled = false,
|
disabled = false,
|
||||||
className,
|
className,
|
||||||
}: SwitchProps & {
|
}: SwitchProps & {
|
||||||
ref: React.RefObject<HTMLButtonElement>;
|
ref?: React.RefObject<HTMLButtonElement>;
|
||||||
},
|
},
|
||||||
) => {
|
) => {
|
||||||
const [enabled, setEnabled] = useState(defaultValue)
|
const [enabled, setEnabled] = useState(defaultValue)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue