redesign app layout: set different background colors to avatars depending on user's name

This commit is contained in:
Daniel Cojocea committed 2024-08-13 20:24:29 -04:00
1 parent baeacd15a2
commit 826779dcd0
2 files changed
+31 -9

No files matched your search

+8 -8
View File
@@ -23,13 +23,6 @@ import Arrow from "../../assets/icons/down-arrow.svg?react";
import "./index.css";
/**
* @component
* Sidebar component serves as a sidebar containing a menu.
*
* @returns {JSX.Element} The JSX element representing the Sidebar component.
*/
const menu = [
{ name: "Monitors", path: "monitors", icon: <Monitors /> },
{ name: "Incidents", path: "incidents", icon: <Incidents /> },
@@ -48,6 +41,13 @@ const icons = {
Logout: <LogoutSvg />,
};
/**
* @component
* Sidebar component serves as a sidebar containing a menu.
*
* @returns {JSX.Element} The JSX element representing the Sidebar component.
*/
function Sidebar() {
const theme = useTheme();
const navigate = useNavigate();
@@ -173,7 +173,7 @@ function Sidebar() {
<Typography component="span" ml={theme.gap.xs}>
{authState.user?.firstName} {authState.user?.lastName}
</Typography>
<Arrow style={{marginTop: "2px"}}/>
<Arrow style={{ marginTop: "2px", marginLeft: "auto" }} />
</Stack>
</Tooltip>
<Menu