diff --git a/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx b/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx index 0d14e83630..d993d50bd4 100644 --- a/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx +++ b/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx @@ -45,6 +45,7 @@ const ProjectSelect = ({ {ALL_PROJECTS.name} , @@ -64,6 +65,7 @@ const ProjectSelect = ({ label={`${curentProject.name}`} callback={handleChangeProject} renderOptions={renderProjectOptions} + className="" /> ); diff --git a/frontend/src/page/admin/users/index.js b/frontend/src/page/admin/users/index.js index 7aca7ea94f..979e4b323f 100644 --- a/frontend/src/page/admin/users/index.js +++ b/frontend/src/page/admin/users/index.js @@ -20,7 +20,7 @@ const UsersAdmin = ({ history }) => { show={} elseShow={ - You need to be a root admin to access this section. + You need instance admin to access this section. } /> diff --git a/frontend/src/page/history/index.js b/frontend/src/page/history/index.js index 30e247616b..7ca21fa67a 100644 --- a/frontend/src/page/history/index.js +++ b/frontend/src/page/history/index.js @@ -1,6 +1,24 @@ -import React from 'react'; +import { Alert } from '@material-ui/lab'; +import React, { useContext } from 'react'; +import { ADMIN } from '../../component/AccessProvider/permissions'; +import ConditionallyRender from '../../component/common/ConditionallyRender'; import HistoryComponent from '../../component/history/EventHistory'; +import AccessContext from '../../contexts/AccessContext'; -const render = () => ; +const HistoryPage = ({ history }) => { + const { hasAccess } = useContext(AccessContext); -export default render; + return ( + } + elseShow={ + + You need instance admin to access this section. + + } + /> + ); +}; + +export default HistoryPage;