Skip to content

Commit

Permalink
Update Switch.tsx
Browse files Browse the repository at this point in the history
remove `onChange` in `useMergedState`
  • Loading branch information
1uokun authored Feb 23, 2024
1 parent 4bd1cfc commit be02a03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/switch/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const AntmSwitch = ({
const [innerChecked, setInnerChecked] = useMergedState<boolean>(false, {
value: checked,
defaultValue: defaultChecked,
onChange: onChange,
})
const [innerLoading, setInnerLoading] = useMergedState<boolean>(false, {
value: loading,
Expand Down

0 comments on commit be02a03

Please sign in to comment.