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

test gestion

parent c86c4d69
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,9 @@ import GestionParticipants from "./Gestion/GestionParticipants";
import GestionScore from "./Gestion/GestionScore";
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 = {
......@@ -30,7 +32,16 @@ class Pills extends Component {
}
};
render() {
returnContent = () => {
if (!useIsStaff()) {
return (
<MDBContainer className="mt-4">
Accès réservé aux staffeurs ...
<br /> <br />
</MDBContainer>
)
}
else {
return (
<MDBContainer className="mt-4">
<MDBRow>
......@@ -106,4 +117,9 @@ class Pills extends Component {
}
}
render() {
this.returnContent();
}
}
export default Pills;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment