mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 21:06:01 +08:00
fix: change Switch.props.ref
to optional prop to align with OriginalSwitch
(#17443)
This commit is contained in:
parent
6efa882ca3
commit
dc9194ca00
@ -20,7 +20,7 @@ const Switch = (
|
||||
disabled = false,
|
||||
className,
|
||||
}: SwitchProps & {
|
||||
ref: React.RefObject<HTMLButtonElement>;
|
||||
ref?: React.RefObject<HTMLButtonElement>;
|
||||
},
|
||||
) => {
|
||||
const [enabled, setEnabled] = useState(defaultValue)
|
||||
|
Loading…
x
Reference in New Issue
Block a user