From af67a43af0fd39abcfb13b9bd3c2aac089e830f4 Mon Sep 17 00:00:00 2001 From: Piyush Sinha Date: Thu, 23 Jul 2020 11:22:51 +0530 Subject: [PATCH] [INFRA-444] | Piyush | Update auto close values for all toaster types --- src/components/manifest/Form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/manifest/Form.tsx b/src/components/manifest/Form.tsx index 378c0ea..73b9a5f 100644 --- a/src/components/manifest/Form.tsx +++ b/src/components/manifest/Form.tsx @@ -148,10 +148,10 @@ const Form = (props: any) => { .then((r) => { r.json().then(resJson => { if(r.ok) { - toast.update(toastId, {render: 'Updated', type: 'success'}) + toast.update(toastId, {render: 'Updated', type: 'success', autoClose: 3000}) setFormInitData(resJson.manifest); } else { - toast.update(toastId, {render: formatDisplayData({error: resJson.error, message: resJson.message}), type: 'error'}) + toast.update(toastId, {render: formatDisplayData({error: resJson.error, message: resJson.message}), type: 'error', autoClose: 5000}) } }) })