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

nn

parent 1b203494
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import React from 'react';
import {MDBDropdown, MDBDropdownToggle, MDBDropdownMenu, MDBDropdownItem, MDBIcon} from "mdbreact";
import { useIsAdmin, useIsStaff } from '../../hooks/authTools';
export default function AdminSection () {
export default function AdminSection (props) {
if (useIsAdmin === false) {
return (
<MDBDropdown >
......
......@@ -28,7 +28,7 @@ export default function Dropdown (props) {
}
else {
return (
<AdminSection />
<AdminSection user={props.user} />
)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment