apps/web: reduce Buttons onClick timeout
This commit is contained in:
parent
f497320558
commit
c3b6e8b046
@ -30,7 +30,7 @@ export function Buttons() {
|
||||
if (typeof res !== 'boolean') {
|
||||
setTimeout(() => {
|
||||
setFormStatus('edit');
|
||||
}, 500);
|
||||
}, 300);
|
||||
Object.keys(res.errors).forEach((name) => {
|
||||
const elementValidation = res?.errors?.[name];
|
||||
if (elementValidation)
|
||||
@ -40,7 +40,7 @@ export function Buttons() {
|
||||
setFormStatus('success');
|
||||
setTimeout(() => {
|
||||
router.refresh();
|
||||
}, 800);
|
||||
}, 600);
|
||||
}
|
||||
});
|
||||
}}
|
||||
@ -55,7 +55,7 @@ export function Buttons() {
|
||||
if (typeof res !== 'boolean') {
|
||||
setTimeout(() => {
|
||||
setFormStatus('edit');
|
||||
}, 500);
|
||||
}, 300);
|
||||
Object.keys(res.errors).forEach((name) => {
|
||||
const elementValidation = res?.errors?.[name];
|
||||
if (elementValidation)
|
||||
@ -65,7 +65,7 @@ export function Buttons() {
|
||||
setFormStatus('success');
|
||||
setTimeout(() => {
|
||||
router.refresh();
|
||||
}, 800);
|
||||
}, 600);
|
||||
}
|
||||
});
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user