mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
fix: change Switch.props.ref to optional prop to align with OriginalSwitch (#17443)
This commit is contained in:
@@ -20,7 +20,7 @@ const Switch = (
|
||||
disabled = false,
|
||||
className,
|
||||
}: SwitchProps & {
|
||||
ref: React.RefObject<HTMLButtonElement>;
|
||||
ref?: React.RefObject<HTMLButtonElement>;
|
||||
},
|
||||
) => {
|
||||
const [enabled, setEnabled] = useState(defaultValue)
|
||||
|
||||
Reference in New Issue
Block a user