Переглянути джерело

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

tags/1.2.0
yusheng chen 7 місяці тому
джерело
коміт
dc9194ca00
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      web/app/components/base/switch/index.tsx

+ 1
- 1
web/app/components/base/switch/index.tsx Переглянути файл

@@ -20,7 +20,7 @@ const Switch = (
disabled = false,
className,
}: SwitchProps & {
ref: React.RefObject<HTMLButtonElement>;
ref?: React.RefObject<HTMLButtonElement>;
},
) => {
const [enabled, setEnabled] = useState(defaultValue)

Завантаження…
Відмінити
Зберегти