From 94f23547851457f819006a6df6fab03b5b6d77cd Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 17 Apr 2023 06:26:30 +0100 Subject: [PATCH] made login error timeout configurable --- .env | 4 +++- src/app/modules/auth/components/Login.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env b/.env index ee32553..9f61bae 100644 --- a/.env +++ b/.env @@ -17,4 +17,6 @@ REACT_APP_THEME_API_URL=https://preview.keenthemes.com/theme-api/api REACT_APP_SITE_CONTACT_US=https://www.float.sg/contact REACT_APP_SITE_TERMS=https://www.float.sg/terms -REACT_APP_SITE_ABOUT_US=https://www.float.sg/about \ No newline at end of file +REACT_APP_SITE_ABOUT_US=https://www.float.sg/about + +REACT_APP_LOGIN_ERROR_TIMEOUT=5000 \ No newline at end of file diff --git a/src/app/modules/auth/components/Login.tsx b/src/app/modules/auth/components/Login.tsx index 1d07f09..4371d9d 100644 --- a/src/app/modules/auth/components/Login.tsx +++ b/src/app/modules/auth/components/Login.tsx @@ -62,7 +62,7 @@ export function Login() { } finally { setTimeout(()=>{ setStatus('') - }, 5000) + }, Number(process.env.REACT_APP_LOGIN_ERROR_TIMEOUT)) } }, })