Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 253cace3fe | |||
| aa55a1a4e0 | |||
| 8b763882fa | |||
| 30540e46ba | |||
| b195b1f787 | |||
| 2ddd04a1a1 |
@@ -16,3 +16,6 @@ REACT_APP_TERMS_LINK='https://qa-www.mermsemr.com/terms'
|
|||||||
# Inactivity timeout/logout AT 10MINS
|
# Inactivity timeout/logout AT 10MINS
|
||||||
REACT_APP_TIMEOUT=600000
|
REACT_APP_TIMEOUT=600000
|
||||||
|
|
||||||
|
# show download button
|
||||||
|
REACT_APP_SHOW_DOWNLOAD=0
|
||||||
|
|
||||||
|
|||||||
@@ -17,3 +17,6 @@ REACT_APP_TERMS_LINK='https://qa-www.mermsemr.com/terms'
|
|||||||
# Inactivity timeout/logout AT 10MINS
|
# Inactivity timeout/logout AT 10MINS
|
||||||
REACT_APP_TIMEOUT=600000
|
REACT_APP_TIMEOUT=600000
|
||||||
|
|
||||||
|
# show download button
|
||||||
|
REACT_APP_SHOW_DOWNLOAD=0
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,6 @@ REACT_APP_TERMS_LINK='https://www.mermsemr.com/terms'
|
|||||||
|
|
||||||
# Inactivity timeout/logout AT 10MINS
|
# Inactivity timeout/logout AT 10MINS
|
||||||
REACT_APP_TIMEOUT=600000
|
REACT_APP_TIMEOUT=600000
|
||||||
|
|
||||||
|
# show download button
|
||||||
|
REACT_APP_SHOW_DOWNLOAD=0
|
||||||
@@ -5,27 +5,31 @@ import IOSDownload from '../../assets/img/download/apple.jpg'
|
|||||||
export default function AuthFooter() {
|
export default function AuthFooter() {
|
||||||
return (
|
return (
|
||||||
<div className='w-100'>
|
<div className='w-100'>
|
||||||
<div className="row" style={{margin: '5px'}}>
|
{Number(process.env.REACT_APP_SHOW_DOWNLOAD) == 100 &&
|
||||||
<hr />
|
<>
|
||||||
</div>
|
<div className="row" style={{margin: '5px'}}>
|
||||||
<div className="row" style={{marginTop: '20px'}}>
|
<hr />
|
||||||
<div className="col-6">
|
|
||||||
<div className="app-store-icons-wrap text-center">
|
|
||||||
<a className="icon google"
|
|
||||||
href='#' >
|
|
||||||
<img src={IOSDownload} className='w-80 h-auto' alt='IOS Download' />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="row" style={{marginTop: '20px'}}>
|
||||||
|
<div className="col-6">
|
||||||
|
<div className="app-store-icons-wrap text-center">
|
||||||
|
<a className="icon google"
|
||||||
|
href='#' >
|
||||||
|
<img src={IOSDownload} className='w-80 h-auto' alt='IOS Download' />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="col-6">
|
<div className="col-6">
|
||||||
<div className="app-store-icons-wrap text-center">
|
<div className="app-store-icons-wrap text-center">
|
||||||
<a className="icon apple" href='#'>
|
<a className="icon apple" href='#'>
|
||||||
<img src={GoogleDownload} className='w-80 h-auto' alt='IOS Download' />
|
<img src={GoogleDownload} className='w-80 h-auto' alt='IOS Download' />
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</>
|
||||||
|
}
|
||||||
|
|
||||||
<div className="login-links">
|
<div className="login-links">
|
||||||
<a href={process.env.REACT_APP_HOME_LINK}>Home</a>
|
<a href={process.env.REACT_APP_HOME_LINK}>Home</a>
|
||||||
|
|||||||
@@ -46,12 +46,12 @@ export default function Login() {
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
},
|
},
|
||||||
onSuccess: (res) => {
|
onSuccess: (res) => {
|
||||||
if(res?.data?.error_message){
|
if(res?.data && res?.data?.error_message){
|
||||||
throw({message: res?.data?.error_message})
|
throw({message: res?.data?.error_message})
|
||||||
}
|
}
|
||||||
const {token, room, uid} = res?.data
|
const {token, room, uid} = res?.data
|
||||||
if(!token || !room){
|
if(!token || !room){
|
||||||
throw({message: 'something went wrong, try again!'})
|
throw({message: 'Unable to complete your login, Please try again!'})
|
||||||
}
|
}
|
||||||
localStorage.setItem('token', token)
|
localStorage.setItem('token', token)
|
||||||
localStorage.setItem('room', room)
|
localStorage.setItem('room', room)
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ const postAuxEnd = (path, postData, media=false) => {
|
|||||||
return axios.post(`${basePath}${path}`, postData).then(res => {
|
return axios.post(`${basePath}${path}`, postData).then(res => {
|
||||||
return res
|
return res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
// console.log('res', err.response.data)
|
// throw new Error(err.response.data.error_message);
|
||||||
throw new Error(err.response.data.error_message);
|
throw new Error(err);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user