Unverified Commit 811e7621 authored by ksmirnov's avatar ksmirnov Committed by GitHub

Merge pull request #3 from AyaDigital/feature/DMVP-1048

DMVP-1048 Set Validation For the calls
parents 6a163c20 efc65433
......@@ -176,25 +176,29 @@ const Appointments = () => {
fontWeight='bold'
>
<GridItem>
Before timeout
Before timeout (0 - 20 minutes)
</GridItem>
<GridItem>
<TextField
value={currentBeforeTimeout}
onChange={({ target: {value} }) => {
setCurrentBeforeTimeout(value)
if (value >= 0 && value <= 20) {
setCurrentBeforeTimeout(value)
}
}}
/>
</GridItem>
<GridItem>
After timeout
After timeout (0 - 2 minutes)
</GridItem>
<GridItem>
<TextField
value={currentAfterTimeout}
onChange={({ target: {value} }) => {
setCurrentAfterTimeout(value)
if (value >= 0 && value <= 2) {
setCurrentAfterTimeout(value);
}
}}
/>
</GridItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment