Procházet zdrojové kódy

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

tags/1.2.0
yusheng chen před 7 měsíci
rodič
revize
dc9194ca00
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      web/app/components/base/switch/index.tsx

+ 1
- 1
web/app/components/base/switch/index.tsx Zobrazit soubor

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

Načítá se…
Zrušit
Uložit