-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMultipleAccessError.js
35 lines (31 loc) · 1.38 KB
/
MultipleAccessError.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { memo, useCallback } from 'react';
import { Button } from '@mui/material';
import { auth } from './firebase';
import { ReactComponent as ChatPlusLogo } from "./logo.svg"
import bg from "./login-bg.svg"
import './Login.css'
const MultipleAccessError = () => {
const out = useCallback(() => {
auth.signOut();
}, []);
return (
<div className="login" style={{ backgroundImage: `url(${bg})` }}>
<div className="login__container access__container">
<ChatPlusLogo />
<div className="login__text access__text">
<h1>Multiple Devices Can't Access This App at The Same time</h1>
<h3>It looks like you're trying to access your account with another device at the same time, You cannot do that, either log out from the other device and click on reload to reload the page and access this app with the same account or log out from this device and access the app with another account</h3>
</div>
<Button onClick={() => window.location.reload()} sx={{
marginRight: "10px"
}}>
Reload
</Button>
<Button onClick={out} >
Log Out
</Button>
</div>
</div>
)
}
export default memo(MultipleAccessError);