sidebar position fixed

This commit is contained in:
Taehee Choi 2022-03-24 22:29:00 -07:00
parent 0a8546f6f7
commit e810900c7e

View File

@ -16,7 +16,7 @@ import SidebarUser from "./SidebarUser";
// TODO: toolbar on top of sidebar since it goes under the navbar // TODO: toolbar on top of sidebar since it goes under the navbar
const drawerWidth = "12.5%"; const drawerWidth = "200px";
const Sidebar: React.FC = () => { const Sidebar: React.FC = () => {
const [group, setGroup] = useState<string>("Favorites"); const [group, setGroup] = useState<string>("Favorites");
@ -33,15 +33,16 @@ const Sidebar: React.FC = () => {
selectUserStatuses(state, groupMembersUuids) selectUserStatuses(state, groupMembersUuids)
); );
console.log(group);
return ( return (
<Drawer <Drawer
sx={{ sx={{
width: drawerWidth, width: drawerWidth,
"& .MuiDrawer-paper": { "& .MuiDrawer-paper": {
width: drawerWidth, width: drawerWidth,
position: "static",
height: "100%",
}, },
height: "100%",
}} }}
variant="permanent" variant="permanent"
anchor="right" anchor="right"