Merge pull request #2748 from bluewave-labs/feat/fe/sidebar-theme
Feat: Theme Switch Removal from Sidebar
This commit is contained in:
1 file changed
+22
-31
@@ -4,7 +4,6 @@ import Typography from "@mui/material/Typography";
|
|||||||
import Tooltip from "@mui/material/Tooltip";
|
import Tooltip from "@mui/material/Tooltip";
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
import Avatar from "../../Avatar";
|
import Avatar from "../../Avatar";
|
||||||
import ThemeSwitch from "../../ThemeSwitch";
|
|
||||||
import Menu from "@mui/material/Menu";
|
import Menu from "@mui/material/Menu";
|
||||||
import MenuItem from "@mui/material/MenuItem";
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
import Divider from "@mui/material/Divider";
|
import Divider from "@mui/material/Divider";
|
||||||
@@ -152,38 +151,30 @@ const AuthFooter = ({ collapsed, accountMenuItems }) => {
|
|||||||
{getRoleDisplayText(authState.user, t)}
|
{getRoleDisplayText(authState.user, t)}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack
|
<Tooltip
|
||||||
direction="row"
|
title={t("navControls")}
|
||||||
columnGap={theme.spacing(2)}
|
disableInteractive
|
||||||
>
|
>
|
||||||
<ThemeSwitch color={theme.palette.primary.contrastTextTertiary} />
|
<IconButton
|
||||||
<Tooltip
|
sx={{
|
||||||
title={t("navControls")}
|
ml: "50px",
|
||||||
disableInteractive
|
"&:focus": { outline: "none" },
|
||||||
>
|
alignSelf: "center",
|
||||||
<IconButton
|
|
||||||
sx={{
|
|
||||||
ml: "auto",
|
|
||||||
mr: "-8px",
|
|
||||||
"&:focus": { outline: "none" },
|
|
||||||
alignSelf: "center",
|
|
||||||
padding: "10px",
|
|
||||||
|
|
||||||
"& svg": {
|
"& svg": {
|
||||||
width: "22px",
|
width: "22px",
|
||||||
height: "22px",
|
height: "22px",
|
||||||
},
|
},
|
||||||
"& svg path": {
|
"& svg path": {
|
||||||
/* Vertical three dots */
|
/* Vertical three dots */
|
||||||
stroke: theme.palette.primary.contrastTextTertiary,
|
stroke: theme.palette.primary.contrastTextTertiary,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
onClick={(event) => openPopup(event)}
|
onClick={(event) => openPopup(event)}
|
||||||
>
|
>
|
||||||
<DotsVertical />
|
<DotsVertical />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Stack>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
<Menu
|
<Menu
|
||||||
className="sidebar-popup"
|
className="sidebar-popup"
|
||||||
|
|||||||
Reference in new issue
Block a user