Skip to content

Commit cc64958

Browse files
committed
feat(ux): improve flow between view team and profile
1 parent 41f57f1 commit cc64958

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/team/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import TeamMemberList from "@/components/team/TeamMemberList";
1111
import { useAuth } from "@/context/AuthContext";
1212
import axios from "axios";
1313
import React, { useEffect, useState } from "react";
14+
import DangerButton from "@/components/ui/DangerButton";
15+
import { useRouter } from "next/navigation";
1416

1517
interface TeamMember {
1618
id: string;
@@ -62,6 +64,7 @@ const TeamPage = () => {
6264
const [loading, setLoading] = useState(true);
6365
const [project, setProject] = useState<Project | null>(null);
6466
const [error, setError] = useState("");
67+
const router = useRouter();
6568

6669
const { user, getUser } = useAuth();
6770

@@ -138,7 +141,10 @@ const TeamPage = () => {
138141

139142
return (
140143
<div className="flex flex-col items-center justify-center min-h-screen bg-[#09090b] text-white">
141-
<HeaderComponent />
144+
<header className="w-full bg-[#121212] flex items-center justify-between px-6 py-4 border-b border-gray-700">
145+
<h1 className="text-lg font-bold">Your Team</h1>
146+
<DangerButton buttonText="Go Back" onClick={() => router.push("/")} />
147+
</header>
142148
<div className="flex flex-grow flex-col p-8 w-full gap-8">
143149
<div className="flex flex-row justify-between gap-8">
144150
<TeamInformation

0 commit comments

Comments
 (0)