Skip to content

Commit 76a9ada

Browse files
committed
feat(ux/evaluator): add evaluate project button to complete navigation flow for evaluator
1 parent ac80412 commit 76a9ada

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/project/[id]/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { useRouter } from "next/navigation";
1010
import React, { useState, useEffect, use } from "react";
1111
import { useAuth } from "@/context/AuthContext";
1212
import axios from "axios";
13+
import Link from "next/link";
14+
import PositiveButton from "@/components/ui/PositiveButton";
1315

1416
interface Evaluation {
1517
id: string;
@@ -144,13 +146,20 @@ const Profile = ({ params }: Params) => {
144146
teamName={project?.team?.name || ""}
145147
customStyle="w-[1/4]"
146148
/>
147-
<div className="ml-8 my-auto">
149+
<div className="ml-8 flex flex-col gap-4 my-auto">
148150
<ProjectInformation
149151
adminView={true}
150152
teamName={project?.team?.name || "Not in a team"}
151153
description={project?.description || "No description"}
152154
customStyle="w-[3/4]"
153155
/>
156+
<Link href={`/evaluate/${project?.id}`} target="_blank">
157+
<PositiveButton
158+
buttonText="Evaluate Project"
159+
customStyle="w-full"
160+
onClick={() => {}}
161+
/>
162+
</Link>
154163
</div>
155164
</div>
156165
<FooterSection />

0 commit comments

Comments
 (0)