improvement: hide some elements base on user profile

This commit is contained in:
canove
2021-01-14 06:55:44 -03:00
parent 3bb63a25da
commit b2438c4fdf
8 changed files with 83 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ import AccountTreeOutlinedIcon from "@material-ui/icons/AccountTreeOutlined";
import { i18n } from "../translate/i18n";
import { WhatsAppsContext } from "../context/WhatsApp/WhatsAppsContext";
import { AuthContext } from "../context/Auth/AuthContext";
import Can from "../components/Can";
import { Can } from "../components/Can";
function ListItemLink(props) {
const { icon, primary, to, className } = props;