Skip to content

Commit

Permalink
Update route
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbar01234 committed Mar 7, 2024
1 parent efd941a commit 62454e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions src/app/private/[uid]/chapter-leader/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import Sidebar, { ISideBar } from "@components/Sidebar";
import { CollapsableSidebarContainer } from "@components/container";
import {
faHome,
faUser,
Expand All @@ -25,7 +26,7 @@ const UserLayout = ({ children }: IUserLayout) => {
},
{
name: "Members",
link: `/private/${user.id}/chapter-leader/members`,
link: `/private/${user.id}/chapter-leader/users`,
icon: faUserGroup,
},
{
Expand All @@ -43,12 +44,9 @@ const UserLayout = ({ children }: IUserLayout) => {
);

return (
<div className="grid h-full w-full grid-cols-12">
<div className="col-span-2 bg-[#E7E0D6]">
<Sidebar buttons={buttons} />
</div>
<div className="col-span-10 bg-[#F4F0EB]">{children}</div>
</div>
<CollapsableSidebarContainer buttons={buttons}>
{children}
</CollapsableSidebarContainer>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const MembersHomePage = ({ members, user }: MembersHomePageProps) => {
<UserTile
key={index}
student={member}
link={`/private/${user.id}/chapter-leader/members/${member.id}`}
link={`/private/${user.id}/chapter-leader/users/${member.id}`}
/>
);
})}
Expand Down

0 comments on commit 62454e4

Please sign in to comment.