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

gestion block

parent d6c57be7
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ 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,16 +31,7 @@ class Pills extends Component {
}
};
returnContent = () => {
if (!useIsAdmin()) {
return (
<MDBContainer className="mt-4">
Accès réservé aux administrateur ...
<br /> <br />
</MDBContainer>
)
}
else {
render() {
return (
<MDBContainer className="mt-4">
<MDBRow>
......@@ -117,9 +107,4 @@ 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