Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abh1noob committed Mar 16, 2024
1 parent 2b73a64 commit 5ad79db
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devsoc24-portal-fe/src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ export default function HomePage() {
case 401:
void router.push("/");
break;
case 502:
void router.push("/");
break;
case 404:
if (axiosError.response?.data.message === "user does not exist") {
router.push("/");
Expand Down Expand Up @@ -258,7 +261,7 @@ export default function HomePage() {
<>
<ToastContainer />
<main className="max-w-screen flex h-fit flex-col items-center overflow-x-hidden bg-[#F4F5FA] lg:h-screen">
<div className="flex h-[8vh] w-full items-center justify-between gap-x-8 bg-background px-2 py-2 lg:px-6">
<div className="flex min-h-[8vh] h-fit w-full items-center justify-between gap-x-8 bg-background px-2 py-2 lg:px-6">
<div className="flex flex-row gap-4 lg:gap-8">
<Logo className="h-9/10 b flex w-auto scale-[0.75] lg:scale-[1]" />
<Image
Expand Down
3 changes: 3 additions & 0 deletions devsoc24-portal-fe/src/components/team/createTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function CreateTeam() {
case 401:
router.push("/");
break;
case 502:
router.push("/");
break;
case 417:
setTeam(false);
break;
Expand Down
3 changes: 3 additions & 0 deletions devsoc24-portal-fe/src/components/team/joinTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ function JoinTeam() {
case 401:
void router.push("/");
break;
case 502:
void router.push("/");
break;
case 417:
setTeam(true);
// console.log("no team");
Expand Down
3 changes: 3 additions & 0 deletions devsoc24-portal-fe/src/components/team/kick.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const Kick = () => {
case 401:
void router.push("/");
break;
case 502:
void router.push("/");
break;
case 404:
// console.log("Idea Not found, but in a team");
break;
Expand Down
3 changes: 3 additions & 0 deletions devsoc24-portal-fe/src/components/team/leaveTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const LeaveTeam = () => {
case 401:
void router.push("/");
break;
case 502:
void router.push("/");
break;
case 404:
// console.log("Idea Not found, but in a team");
break;
Expand Down

0 comments on commit 5ad79db

Please # to comment.