diff --git a/src/components/ReportSearcher.js b/src/components/ReportSearcher.js index 7ff81f5..2c58a54 100644 --- a/src/components/ReportSearcher.js +++ b/src/components/ReportSearcher.js @@ -3,13 +3,14 @@ import { useSelector } from "react-redux"; import { Box, Button, Tooltip } from "@material-ui/core"; import HelpOutlineIcon from "@material-ui/icons/HelpOutline"; +import EditIcon from '@material-ui/icons/Edit'; import { Searcher, useTranslations, useModulesManager, } from "@openimis/fe-core"; -import { RIGHT_REPORT_EDIT, RIGHT_REPORT_ADD } from "../constants"; +import { RIGHT_REPORT_EDIT } from "../constants"; import { useReportsQuery } from "../hooks"; import GenerateReportPicker from "./GenerateReportPicker"; import ReportDefinitionEditorDialog from "./ReportDefinitionEditorDialog"; @@ -66,12 +67,6 @@ const ReportSearcher = () => { const formatActions = (report) => !report.category && ( - {rights.includes(RIGHT_REPORT_ADD) && - rights.includes(RIGHT_REPORT_EDIT) && ( - - )}
{
+ {rights.includes(RIGHT_REPORT_EDIT) && ( + + )}
);