diff --git a/src/components/sidebar/GroupSelect.tsx b/src/components/sidebar/GroupSelect.tsx
index a57d622..92f7d61 100644
--- a/src/components/sidebar/GroupSelect.tsx
+++ b/src/components/sidebar/GroupSelect.tsx
@@ -1,7 +1,39 @@
+import { FormControl, InputLabel, MenuItem, Select, SelectChangeEvent, Typography } from "@mui/material";
+import { useState } from "react";
+
+// TODO: change MenuItem values to something meaningful
const GroupSelect: React.FC = () => {
+
+ const [group, setGroup] = useState("");
+
+ const handleChange = (event: SelectChangeEvent) => {
+ setGroup(event.target.value);
+ };
+
return (
-
GroupSelect
+
+
+ Group
+
+
+
);
};
diff --git a/src/components/sidebar/Sidebar.tsx b/src/components/sidebar/Sidebar.tsx
index c6c1565..c6ad669 100644
--- a/src/components/sidebar/Sidebar.tsx
+++ b/src/components/sidebar/Sidebar.tsx
@@ -1,19 +1,41 @@
-import { Box } from "@mui/material";
+import { Divider, Drawer, List, ListItem, ListSubheader } from "@mui/material";
+import GroupSelect from "./GroupSelect";
import SidebarUser, { SidebarUserObj } from "./SidebarUser";
+// TODO: SidebarUser icon button context menu
+
+const drawerWidth = 240;
+
interface Props {
users: SidebarUserObj[],
}
const Sidebar: React.FC = ({ users }: Props) => {
return (
-
- {users.map((user) => (
-
-
-
- ))}
-
+
+
+
+
+
+ {users.map((user) => (
+
+
+
+ ))}
+
+
+
);
};
diff --git a/src/components/sidebar/SidebarUser.tsx b/src/components/sidebar/SidebarUser.tsx
index b259ff3..8b84767 100644
--- a/src/components/sidebar/SidebarUser.tsx
+++ b/src/components/sidebar/SidebarUser.tsx
@@ -1,4 +1,5 @@
-import { Box } from "@mui/material";
+import { Settings } from "@mui/icons-material";
+import { Box, IconButton, Typography } from "@mui/material";
export interface SidebarUserObj {
id: number,
@@ -42,7 +43,7 @@ const getStatusColor = (ms: MeetingStatus): string => {
return "#ff7070";
}
case MeetingStatus.IN_MEETING: {
- return "#baba34";
+ return "#e8da46";
}
}
};
@@ -53,10 +54,17 @@ interface Props {
const SidebarUser: React.FC = ({ user }: Props) => {
return (
-
- {user.name}
- {getStatusColor(user.meetingStatus)}
- {getMeetingStatusText(user.meetingStatus)}
+
+
+
+ {user.name}
+ {getMeetingStatusText(user.meetingStatus)}
+
+
+
+
);
};