got the group drawer set up using the responsive tabe for the devices
This commit is contained in:
parent
bb036a60c7
commit
4a3b706487
4 changed files with 96 additions and 11 deletions
|
|
@ -26,12 +26,10 @@ import { useGlobalState } from "providers";
|
|||
import {
|
||||
IsAdaptiveAgriculture,
|
||||
// hasTutorialPlaylist,
|
||||
// IsAdaptiveAgriculture,
|
||||
// IsAdCon,
|
||||
IsAdCon,
|
||||
// isBXT,
|
||||
IsMiVent,
|
||||
IsOmniAir,
|
||||
// IsOmniAir
|
||||
} from "services/whiteLabel";
|
||||
import MiningIcon from "products/ventilation/MiningIcon";
|
||||
import { useAuth0 } from "@auth0/auth0-react";
|
||||
|
|
@ -144,6 +142,7 @@ export default function SideNavigator(props: Props) {
|
|||
const isMiVent = IsMiVent();
|
||||
const isAg = IsAdaptiveAgriculture()
|
||||
const isMiPCA = IsOmniAir()
|
||||
const isAdCon = IsAdCon()
|
||||
return (
|
||||
<List className={classes.list} component="nav">
|
||||
{(isAg || user.hasFeature("admin")) && (
|
||||
|
|
@ -238,7 +237,7 @@ export default function SideNavigator(props: Props) {
|
|||
</ListItemButton>
|
||||
</Tooltip>
|
||||
)}
|
||||
{(IsOmniAir || user.hasFeature("admin")) && (
|
||||
{(isMiPCA || user.hasFeature("admin")) && (
|
||||
<Tooltip title="Aviation Map" placement="right">
|
||||
<ListItemButton
|
||||
id="tour-aviation-map"
|
||||
|
|
@ -248,7 +247,21 @@ export default function SideNavigator(props: Props) {
|
|||
<ListItemIcon>
|
||||
<AirportMapIcon />
|
||||
</ListItemIcon>
|
||||
{open && <ListItemText primary="Visual Farm" />}
|
||||
{open && <ListItemText primary="Airport Map" />}
|
||||
</ListItemButton>
|
||||
</Tooltip>
|
||||
)}
|
||||
{(isAdCon || user.hasFeature("admin")) && (
|
||||
<Tooltip title="Construction Map" placement="right">
|
||||
<ListItemButton
|
||||
id="tour-construction-map"
|
||||
onClick={() => goTo("/constructionMap")}
|
||||
classes={getClasses("/constructionMap")}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<FieldsIcon />
|
||||
</ListItemIcon>
|
||||
{open && <ListItemText primary="Construction Map" />}
|
||||
</ListItemButton>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue