Mostrar oportunidades publicadas antes do registo de candidatos

This commit is contained in:
2026-10-30 21:15:27 +02:00
parent bf84575d10
commit c22846b2b1
10 changed files with 528 additions and 8 deletions
+17
View File
@@ -17,6 +17,7 @@ export default function Profile({
emailDeliveryAvailable = false,
accessStatus,
opportunities = [],
opportunityPagination,
submissions = [],
}: {
companyId: number;
@@ -26,6 +27,7 @@ export default function Profile({
emailDeliveryAvailable?: boolean;
accessStatus?: string | null;
opportunities?: { id: number; title: string; closes_on: string }[];
opportunityPagination?: { prev: string | null; next: string | null };
submissions?: { id: number; reference: string; created_at: string }[];
}) {
const form = useForm({
@@ -52,6 +54,21 @@ export default function Profile({
</Link>
</p>
))}
<nav
aria-label="Páginas de oportunidades"
className="flex gap-4"
>
{opportunityPagination?.prev && (
<Link href={opportunityPagination.prev} preserveScroll>
Anterior
</Link>
)}
{opportunityPagination?.next && (
<Link href={opportunityPagination.next} preserveScroll>
Seguinte
</Link>
)}
</nav>
<h2 className="text-xl font-semibold">
As minhas candidaturas
</h2>