diff --git a/frontend/src/layout/MainListItems.js b/frontend/src/layout/MainListItems.js
index c524b76..6f505d4 100644
--- a/frontend/src/layout/MainListItems.js
+++ b/frontend/src/layout/MainListItems.js
@@ -9,8 +9,8 @@ import Divider from "@material-ui/core/Divider";
import { Badge } from "@material-ui/core";
import DashboardOutlinedIcon from "@material-ui/icons/DashboardOutlined";
-import ReportOutlinedIcon from "@material-ui/icons/ReportOutlined";
-import SendOutlined from '@material-ui/icons/SendOutlined';
+import ReportOutlinedIcon from "@material-ui/icons/ReportOutlined";
+import SendOutlined from "@material-ui/icons/SendOutlined";
//import ReportOutlined from "@bit/mui-org.material-ui-icons.report-outlined";
@@ -32,10 +32,7 @@ function ListItemLink(props) {
const { icon, primary, to, className } = props;
const renderLink = React.useMemo(
- () =>
- React.forwardRef((itemProps, ref) => (
-
- )),
+ () => React.forwardRef((itemProps, ref) => ),
[to]
);
@@ -50,7 +47,7 @@ function ListItemLink(props) {
}
const MainListItems = (props) => {
- const { drawerClose } = props;
+ const { drawerClose, setDrawerOpen, drawerOpen } = props;
const { whatsApps } = useContext(WhatsAppsContext);
const { user } = useContext(AuthContext);
const [connectionWarning, setConnectionWarning] = useState(false);
@@ -78,9 +75,8 @@ const MainListItems = (props) => {
}, [whatsApps]);
return (
-
-
-
+ //Solicitado pelo Adriano: Click no LinkItem e fechar o menu!
+
setDrawerOpen(false)}>
{
primary={i18n.t("mainDrawer.listItems.contacts")}
icon={}
/>
- }
- />
+ } />
{
yes={() => (
<>
-
- {i18n.t("mainDrawer.listItems.administration")}
-
+ {i18n.t("mainDrawer.listItems.administration")}
{
}
/>
- }
- />
-
- }
- />
+ } />
+ } />
(
- }
- />
- )}
+ role={user.profile}
+ perform="settings-view:show"
+ yes={() => (
+ }
+ />
+ )}
/>
-
-
>
)}
/>
diff --git a/frontend/src/layout/index.js b/frontend/src/layout/index.js
index ce410d0..dc9dccb 100644
--- a/frontend/src/layout/index.js
+++ b/frontend/src/layout/index.js
@@ -185,7 +185,7 @@ const LoggedInLayout = ({ children }) => {
-
+