mirror of https://github.com/langgenius/dify.git
fix style of switch
This commit is contained in:
parent
843c8ad306
commit
efcd462a69
|
|
@ -11,7 +11,7 @@ type SwitchProps = {
|
|||
className?: string
|
||||
}
|
||||
|
||||
const Switch = ({ onChange, size = 'lg', defaultValue = false, disabled = false, className }: SwitchProps) => {
|
||||
const Switch = ({ onChange, size = 'md', defaultValue = false, disabled = false, className }: SwitchProps) => {
|
||||
const [enabled, setEnabled] = useState(defaultValue)
|
||||
useEffect(() => {
|
||||
setEnabled(defaultValue)
|
||||
|
|
|
|||
Loading…
Reference in New Issue