feat: add theme switch in sidebar
This commit is contained in:
1 parent
3ab8b1241e
commit
cdcefb1106
1 file changed
+8
@@ -21,6 +21,7 @@ import { useDispatch, useSelector } from "react-redux";
|
|||||||
import { clearAuthState } from "../../Features/Auth/authSlice";
|
import { clearAuthState } from "../../Features/Auth/authSlice";
|
||||||
import { toggleSidebar } from "../../Features/UI/uiSlice";
|
import { toggleSidebar } from "../../Features/UI/uiSlice";
|
||||||
import { clearUptimeMonitorState } from "../../Features/UptimeMonitors/uptimeMonitorsSlice";
|
import { clearUptimeMonitorState } from "../../Features/UptimeMonitors/uptimeMonitorsSlice";
|
||||||
|
import ThemeSwitch from "../ThemeSwitch";
|
||||||
import Avatar from "../Avatar";
|
import Avatar from "../Avatar";
|
||||||
import LockSvg from "../../assets/icons/lock.svg?react";
|
import LockSvg from "../../assets/icons/lock.svg?react";
|
||||||
import UserSvg from "../../assets/icons/user.svg?react";
|
import UserSvg from "../../assets/icons/user.svg?react";
|
||||||
@@ -551,6 +552,12 @@ function Sidebar() {
|
|||||||
{authState.user?.role}
|
{authState.user?.role}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Stack
|
||||||
|
flexDirection={"row"}
|
||||||
|
marginLeft={"auto"}
|
||||||
|
columnGap={theme.spacing(2)}
|
||||||
|
>
|
||||||
|
<ThemeSwitch />
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title="Controls"
|
title="Controls"
|
||||||
disableInteractive
|
disableInteractive
|
||||||
@@ -573,6 +580,7 @@ function Sidebar() {
|
|||||||
<DotsVertical />
|
<DotsVertical />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
</Stack>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Menu
|
<Menu
|
||||||
|
|||||||
Reference in new issue
Block a user