Merge branch 'sidebar_changes' into dev_environment
This commit is contained in:
commit
6acfa3c365
1 changed files with 14 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ import PlaneIcon from "products/AviationIcons/PlaneIcon";
|
||||||
import AirportMapIcon from "products/AviationIcons/AirportMapIcon";
|
import AirportMapIcon from "products/AviationIcons/AirportMapIcon";
|
||||||
import JobsiteIcon from "products/Construction/JobSiteIcon";
|
import JobsiteIcon from "products/Construction/JobSiteIcon";
|
||||||
import { getThemeType } from "theme";
|
import { getThemeType } from "theme";
|
||||||
import { openCrispChat } from "chat/CrispChat";
|
import { isCrispEnabled, openCrispChat } from "chat/CrispChat";
|
||||||
import ObjectHeaterIcon from "products/Construction/ObjectHeaterIcon";
|
import ObjectHeaterIcon from "products/Construction/ObjectHeaterIcon";
|
||||||
import TasksIcon from "products/Construction/TasksIcon";
|
import TasksIcon from "products/Construction/TasksIcon";
|
||||||
import CableIcon from "products/Bindapt/CableIcon";
|
import CableIcon from "products/Bindapt/CableIcon";
|
||||||
|
|
@ -551,17 +551,19 @@ export default function SideNavigator(props: Props) {
|
||||||
<Box sx={{ flex: 1, overflowY: "auto", scrollbarWidth: "none", "&::-webkit-scrollbar": { display: "none" } }}>
|
<Box sx={{ flex: 1, overflowY: "auto", scrollbarWidth: "none", "&::-webkit-scrollbar": { display: "none" } }}>
|
||||||
{isAuthenticated && authenticatedSideMenu()}
|
{isAuthenticated && authenticatedSideMenu()}
|
||||||
</Box>
|
</Box>
|
||||||
<Divider sx={{ my: 1 }} />
|
{isCrispEnabled() && (<>
|
||||||
<List className={classes.list} component="nav">
|
<Divider sx={{ my: 1 }} />
|
||||||
<Tooltip title="Help" placement="right">
|
<List className={classes.list} component="nav">
|
||||||
<ListItemButton classes={{ root: classes.listItem }} onClick={() => openCrispChat()}>
|
<Tooltip title="Help" placement="right">
|
||||||
<ListItemIcon>
|
<ListItemButton classes={{ root: classes.listItem }} onClick={() => openCrispChat()}>
|
||||||
<HelpOutline style={{ color: getThemeType() === "light" ? "black" : undefined }} />
|
<ListItemIcon>
|
||||||
</ListItemIcon>
|
<HelpOutline style={{ color: getThemeType() === "light" ? "black" : undefined }} />
|
||||||
{open && <ListItemText primary="Help" />}
|
</ListItemIcon>
|
||||||
</ListItemButton>
|
{open && <ListItemText primary="Help" />}
|
||||||
</Tooltip>
|
</ListItemButton>
|
||||||
</List>
|
</Tooltip>
|
||||||
|
</List>
|
||||||
|
</>)}
|
||||||
</Box>
|
</Box>
|
||||||
</SwipeableDrawer>
|
</SwipeableDrawer>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue