main
Last change
on this file since 08f82ec was b248810, checked in by 223021 <daniel.ilievski.2@…>, 4 months ago |
Added no access page for new recruiters and admin panel for granting access
|
-
Property mode
set to
100644
|
File size:
971 bytes
|
Rev | Line | |
---|
[b248810] | 1 | import "./NoAccess.css"
|
---|
| 2 | import {Link, NavLink} from "react-router-dom";
|
---|
| 3 | import {AuthActions} from "../../redux/actions/authActions";
|
---|
| 4 | import {useDispatch} from "react-redux";
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | export const NoAccess = (props) => {
|
---|
| 8 |
|
---|
| 9 | const dispatch = useDispatch();
|
---|
| 10 | const signOut = () => {
|
---|
| 11 | dispatch(AuthActions.signOut());
|
---|
| 12 | window.location = "/";
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | return (
|
---|
| 16 | <div className="d-flex align-items-center justify-content-center vh-100 landing-page">
|
---|
| 17 | <div className="text-center">
|
---|
| 18 | <p className="fs-3 fw-bold text-uppercase">Thank you for registering!</p>
|
---|
| 19 | <p className="lead">
|
---|
| 20 | Your application has been received and is pending review. We will contact you soon for further authentication. <br/> Please check your email for updates.
|
---|
| 21 | </p>
|
---|
| 22 | {props.user && <button onClick={signOut} className="go-back-btn">Log out</button>}
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | </div>
|
---|
| 26 | </div>
|
---|
| 27 | )
|
---|
| 28 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.