Просмотр исходного кода

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

tags/1.2.0
yusheng chen 7 месяцев назад
Родитель
Сommit
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)

Загрузка…
Отмена
Сохранить