Skip to content

Commit

Permalink
fix: display theses in supervisor details (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejkrol18 authored Jan 6, 2025
2 parents 8629615 + a670a50 commit b0c88b6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/components/supervisor-details.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { ArrowLeft } from "lucide-react";
import { ArrowLeft, FileText, GraduationCap } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useEffect } from "react";
Expand Down Expand Up @@ -53,11 +53,30 @@ function SupervisorDetails({ uuid }: { uuid: string }) {
<p>{faculties[supervisor.faculty] || "Nieznany wydział"}</p>
</div>
<hr className="bg-t-secondary/60" />
<h2
className="flex items-center gap-2 text-xl text-color-primary"
title={`${supervisor.name} jest jednym z autorów poniższych prac`}
>
<FileText />
Prace naukowe
</h2>
<div className="flex flex-wrap gap-4">
{supervisor.papers.map((paper) => (
<PaperEntry key={paper.title} paper={paper} />
))}
</div>
<h2
className="flex items-center gap-2 text-xl text-color-primary"
title={`${supervisor.name} był/a promotorem poniższych prac`}
>
<GraduationCap />
Promotor
</h2>
<div className="flex flex-wrap gap-4">
{supervisor.theses.map((thesis) => (
<PaperEntry key={thesis.title} paper={thesis} />
))}
</div>
</>
);
}
Expand Down

0 comments on commit b0c88b6

Please sign in to comment.