Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
OpenSource
/
dify
Observar
4
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
152
Wiki
Atividade
Ver código fonte
fix: change `Switch.props.ref` to optional prop to align with `OriginalSwitch` (
#17443
)
tags/1.2.0
yusheng chen
7 meses atrás
pai
6efa882ca3
commit
dc9194ca00
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados
com
1 adições
e
1 exclusões
Visão dividida
Mostrar estatísticas do Diff
1
1
web/app/components/base/switch/index.tsx
+ 1
- 1
web/app/components/base/switch/index.tsx
Ver arquivo
@@ -20,7 +20,7 @@ const Switch = (
disabled = false,
className,
}: SwitchProps & {
ref: React.RefObject<HTMLButtonElement>;
ref
?
: React.RefObject<HTMLButtonElement>;
},
) => {
const [enabled, setEnabled] = useState(defaultValue)
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar