Mostrar oportunidades publicadas antes do registo de candidatos
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user