mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-15 13:36:35 +02:00
Core review docs fixes.
This commit is contained in:
@ -11,6 +11,6 @@ const [value, setValue] = useState(false);
|
||||
value={value}
|
||||
label="Some label"
|
||||
helpText="Read the small text!"
|
||||
onChange={e => setValue(e.target.value)}
|
||||
onChange={event =>setValue(event.target.value)}
|
||||
/>
|
||||
```
|
||||
|
@ -11,7 +11,7 @@ const [email, setEmail] = useState('Wrong email');
|
||||
value={email}
|
||||
label="Some label"
|
||||
helpText="Read the small text!"
|
||||
onChange={e => setEmail(e.target.value)}
|
||||
onChange={event =>setEmail(event.target.value)}
|
||||
/>
|
||||
<button type="submit">Try to submit</button>
|
||||
</form>
|
||||
|
@ -3,7 +3,7 @@ Bootstrap modal component.
|
||||
it's required to have an element `<div id={"modal-container"}/>` somewhere on the page since modals are rendered in portals.
|
||||
|
||||
```js
|
||||
<div id={"modal-container"}/>
|
||||
<div id="modal-container"/>
|
||||
```
|
||||
|
||||
I have no idea why example doesn't work here but you can investigate HTML code and Foris project.
|
||||
|
@ -12,6 +12,6 @@ const [value, setValue] = useState(42);
|
||||
helpText="Read the small text!"
|
||||
min='33'
|
||||
max='54'
|
||||
onChange={e => setValue(e.target.value)}
|
||||
onChange={event =>setValue(event.target.value)}
|
||||
/>
|
||||
```
|
||||
|
@ -12,6 +12,6 @@ const [value, setValue] = useState('secret');
|
||||
value={value}
|
||||
label="Some password"
|
||||
helpText="Read the small text!"
|
||||
onChange={e => setValue(e.target.value)}
|
||||
onChange={event =>setValue(event.target.value)}
|
||||
/>
|
||||
```
|
||||
|
@ -17,7 +17,7 @@ const [value, setValue] = useState(CHOICES[0].value);
|
||||
value={value}
|
||||
name='some-radio'
|
||||
choices={CHOICES}
|
||||
onChange={e => setValue(e.target.value)}
|
||||
onChange={event =>setValue(event.target.value)}
|
||||
/>
|
||||
<p>Selected value: {value}</p>
|
||||
</>
|
||||
|
@ -10,6 +10,6 @@ const [value, setValue] = useState('Bla bla');
|
||||
value={value}
|
||||
label="Some text"
|
||||
helpText="Read the small text!"
|
||||
onChange={e => setValue(e.target.value)}
|
||||
onChange={event =>setValue(event.target.value)}
|
||||
/>
|
||||
```
|
||||
|
Reference in New Issue
Block a user