Skip to content

Commit

Permalink
Fix route
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbar01234 committed Apr 4, 2024
1 parent d013bbc commit 3d9933e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 102 deletions.
5 changes: 0 additions & 5 deletions src/app/private/[uid]/chapter-leader/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ const UserLayout = ({ children }: IUserLayout) => {
link: `/private/${user.id}/chapter-leader/seniors`,
icon: faUserGroup,
},
{
name: "Pending",
link: `/private/${user.id}/chapter-leader/pending`,
icon: faUserPlus,
},
{
name: "Profile",
link: `/private/${user.id}/chapter-leader/edit-profile`,
Expand Down
35 changes: 0 additions & 35 deletions src/app/private/[uid]/chapter-leader/pending/PendingHomePage.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/app/private/[uid]/chapter-leader/pending/layout.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions src/app/private/[uid]/chapter-leader/pending/page.tsx

This file was deleted.

4 changes: 3 additions & 1 deletion src/components/DisplayChapterInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ const DisplayChapterInfo = ({
user.role === "USER"
? ""
: `/private/${user.id}/${RoleToUrlSegment[user.role]}` +
`${user.role === "ADMIN" && `/home/chapters/${chapter.id}`}` +
`${
user.role === "ADMIN" ? `/home/chapters/${chapter.id}` : ""
}` +
`/users/${student.id}`;
return <UserTile key={student.id} student={student} link={link} />;
})}
Expand Down
6 changes: 0 additions & 6 deletions src/components/TileGrid/SeniorTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ export function SeniorTile({
},
];

console.log(
`${senior.firstname} ${senior.lastname}` +
"'s Students: " +
senior.StudentIDs.toString()
);

return (
<div className="relative flex aspect-square w-auto flex-col items-center rounded bg-white font-medium drop-shadow-md hover:bg-off-white">
<TileEdit options={options} />
Expand Down

0 comments on commit 3d9933e

Please sign in to comment.