feat(portal): deliver ordinary national credit fraction and education continuity
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-10 12:47:57 +02:00
parent ff726e577f
commit c359364de3
14 changed files with 749 additions and 126 deletions
+31 -2
View File
@@ -1,7 +1,7 @@
import { Link } from '@inertiajs/react';
import EducationReview from '@/components/education-review';
import type { EducationReviewProps } from '@/lib/education-review';
import { Management, Pagination } from '../management/shared';
import { Management } from '../management/shared';
import type { Paginated } from '../management/shared';
type ReviewEntry = {
@@ -146,7 +146,36 @@ export default function Declaration(
)}
</article>
))}
<Pagination page={props.history} />
<nav
aria-label="Paginação do histórico de revisão"
className="flex flex-wrap items-center gap-4"
>
{props.history.prev_page_url && (
<Link
className="rounded border p-2"
href={props.history.prev_page_url}
preserveState
preserveScroll
>
Anterior
</Link>
)}
<span>
{props.history.total} registos · Página{' '}
{props.history.current_page} de{' '}
{props.history.last_page}
</span>
{props.history.next_page_url && (
<Link
className="rounded border p-2"
href={props.history.next_page_url}
preserveState
preserveScroll
>
Seguinte
</Link>
)}
</nav>
</section>
)}
</Management>