瀏覽代碼

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

tags/1.2.0
yusheng chen 7 月之前
父節點
當前提交
dc9194ca00
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/base/switch/index.tsx

+ 1
- 1
web/app/components/base/switch/index.tsx 查看文件

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…
取消
儲存