made login error timeout configurable
This commit is contained in:
@@ -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_CONTACT_US=https://www.float.sg/contact
|
||||||
REACT_APP_SITE_TERMS=https://www.float.sg/terms
|
REACT_APP_SITE_TERMS=https://www.float.sg/terms
|
||||||
REACT_APP_SITE_ABOUT_US=https://www.float.sg/about
|
REACT_APP_SITE_ABOUT_US=https://www.float.sg/about
|
||||||
|
|
||||||
|
REACT_APP_LOGIN_ERROR_TIMEOUT=5000
|
||||||
@@ -62,7 +62,7 @@ export function Login() {
|
|||||||
} finally {
|
} finally {
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
setStatus('')
|
setStatus('')
|
||||||
}, 5000)
|
}, Number(process.env.REACT_APP_LOGIN_ERROR_TIMEOUT))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user