mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 20:59:09 +08:00
fix style of switch
This commit is contained in:
parent
843c8ad306
commit
efcd462a69
@ -11,7 +11,7 @@ type SwitchProps = {
|
|||||||
className?: string
|
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)
|
const [enabled, setEnabled] = useState(defaultValue)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setEnabled(defaultValue)
|
setEnabled(defaultValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user