clicking help opens chat assistant
This commit is contained in:
parent
9d6af5dd16
commit
c35b6b1f15
1 changed files with 5 additions and 3 deletions
|
|
@ -32,6 +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 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";
|
||||||
|
|
@ -96,6 +97,7 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
listItem: {
|
listItem: {
|
||||||
paddingLeft: theme.spacing(2),
|
paddingLeft: theme.spacing(2),
|
||||||
paddingRight: theme.spacing(2),
|
paddingRight: theme.spacing(2),
|
||||||
|
maxHeight: 40,
|
||||||
[theme.breakpoints.up("md")]: {
|
[theme.breakpoints.up("md")]: {
|
||||||
paddingLeft: theme.spacing(3),
|
paddingLeft: theme.spacing(3),
|
||||||
paddingRight: theme.spacing(3)
|
paddingRight: theme.spacing(3)
|
||||||
|
|
@ -549,10 +551,10 @@ 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 />
|
<Divider sx={{ my: 1 }} />
|
||||||
<List>
|
<List className={classes.list} component="nav">
|
||||||
<Tooltip title="Help" placement="right">
|
<Tooltip title="Help" placement="right">
|
||||||
<ListItemButton classes={{ root: classes.listItem }}>
|
<ListItemButton classes={{ root: classes.listItem }} onClick={() => openCrispChat()}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<HelpOutline style={{ color: getThemeType() === "light" ? "black" : undefined }} />
|
<HelpOutline style={{ color: getThemeType() === "light" ? "black" : undefined }} />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue