Skip to content
Snippets Groups Projects
Commit abd5861b authored by Thomas Bouquet's avatar Thomas Bouquet
Browse files

gestion

parent 36735b8b
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ import GestionStaffeurs from "./Gestion/GestionStaffeurs";
import { MDBContainer, MDBRow, MDBCol, MDBTabPane, MDBTabContent, MDBNav, MDBNavItem, MDBNavLink, MDBIcon } from "mdbreact";
import { useIsAdmin } from '../../hooks/authTools';
class Pills extends Component {
state = {
......@@ -32,6 +33,16 @@ class Pills extends Component {
};
render() {
if (useIsAdmin() === false) {
return(
<MDBContainer className="mt-4">
Accès réservé aux staffeurs ...
<br /> <br />
</MDBContainer>
)
}
return (
<MDBContainer className="mt-4">
<MDBRow>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment