-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simultaneous logins modal has been added
- Loading branch information
1 parent
b28d0a2
commit 06f3679
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,9 @@ | |
max-width: 50%; | ||
} | ||
} | ||
|
||
.title { | ||
margin: 28px 0 28px 0; | ||
font-weight: var(--body-font-weight-bold); | ||
font-size: 19px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { useLocation, useNavigate } from 'react-router'; | ||
|
||
import styles from '../AccountModal.module.scss'; | ||
|
||
import Button from '#src/components/Button/Button'; | ||
import { addQueryParam } from '#src/utils/location'; | ||
|
||
const Simultaneouslogins = () => { | ||
const navigate = useNavigate(); | ||
const location = useLocation(); | ||
function loginClickHandler() { | ||
navigate(addQueryParam(location, 'u', 'login')); | ||
} | ||
|
||
return ( | ||
<React.Fragment> | ||
<h1 className={styles.title}>You have been logged out beacuse the simultaneous logins limit has been reached.</h1> | ||
<Button type="submit" onClick={loginClickHandler} label="Ok" variant="contained" color="primary" size="large" fullWidth /> | ||
</React.Fragment> | ||
); | ||
}; | ||
export default Simultaneouslogins; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters