From 0299543f0220c30d5fdc0c6dea1360d79b33dbaf Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 14 Jan 2022 21:36:11 -0800 Subject: [PATCH] fixing race conditions and such --- pages/teams/[teamid]/admin.tsx | 17 ++++++++++++++--- pages/teams/index.tsx | 10 ++++++++-- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/pages/teams/[teamid]/admin.tsx b/pages/teams/[teamid]/admin.tsx index 5707334..0ecf0dc 100644 --- a/pages/teams/[teamid]/admin.tsx +++ b/pages/teams/[teamid]/admin.tsx @@ -14,7 +14,12 @@ import { import { toast } from "react-hot-toast"; import { Team, TeamStatus } from "../../../models/team"; -import { FaMoneyBillWave, FaTrash, FaPaperPlane } from "react-icons/fa"; +import { + FaMoneyBillWave, + FaTrash, + FaPaperPlane, + FaArrowLeft, +} from "react-icons/fa"; import TeamService from "../../../services/teamService"; import Router from "next/router"; import Moment from "react-moment"; @@ -201,7 +206,13 @@ function TeamAdmin() { className="flex flex-col space-y-5" > {/* header */} -
🙌Manage Team
+
+ router.push("/teams/" + teamid)} + />{" "} + Manage Team +
{error && {error}} @@ -235,7 +246,7 @@ function TeamAdmin() {