mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-04 07:34:06 +00:00
feat: add default values
This commit is contained in:
parent
0f31cbbd2d
commit
cd94f7df56
@ -9,10 +9,10 @@ type AddressAndPortInputsProps = {
|
||||
}
|
||||
|
||||
const AddressAndPortInputs = ({ addressType, portType, isAdvanced }: AddressAndPortInputsProps) => {
|
||||
const [isSwitchOn, setIsSwitchOn] = useState(false)
|
||||
const [address, setAddress] = useState('')
|
||||
const [port, setPort] = useState('')
|
||||
const [isChecked, setIsChecked] = useState(false)
|
||||
const [isSwitchOn, setIsSwitchOn] = useState(true)
|
||||
const [address, setAddress] = useState('http://124.0.0.1')
|
||||
const [port, setPort] = useState('5052')
|
||||
const [isChecked, setIsChecked] = useState(true)
|
||||
|
||||
const onSwitchChangeHandler = () => {
|
||||
setIsSwitchOn(state => !state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user