update the copies
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
PopoverContent,
|
||||
PopoverTrigger
|
||||
} from '@repo/ui/components/ui/popover'
|
||||
import { Spinner } from '@repo/ui/components/ui/spinner'
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
@@ -43,7 +44,7 @@ import {
|
||||
TableRow
|
||||
} from '@repo/ui/components/ui/table'
|
||||
import { cn, initials } from '@repo/ui/lib/utils'
|
||||
import { Link } from 'react-router'
|
||||
import { NavLink } from 'react-router'
|
||||
import type { Enrollment, Seat } from './route'
|
||||
|
||||
const dtOptions: Intl.DateTimeFormatOptions = {
|
||||
@@ -63,8 +64,8 @@ export function Enrollments({
|
||||
<CardHeader>
|
||||
<CardTitle className="text-xl">Matrículas relacionadas</CardTitle>
|
||||
<CardDescription>
|
||||
Acompanhe os detalhes de todas as matrículas relacionadas a esta
|
||||
compra.
|
||||
Acompanhe os detalhes de todas as matrículas efetuadas relacionadas a
|
||||
esta compra.
|
||||
</CardDescription>
|
||||
|
||||
<CardAction>
|
||||
@@ -250,7 +251,8 @@ function SeatsMenu({ seats: seats_ }: { seats: Seat[] }) {
|
||||
<div className="space-y-2">
|
||||
<h4 className="leading-none font-medium">Matrículas abertas</h4>
|
||||
<p className="text-muted-foreground text-sm">
|
||||
Matrículas que estão abertas e relacionadas a esta compra.
|
||||
Matrículas permanecem abertas devido à ausência de
|
||||
colaborador.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -268,14 +270,16 @@ function SeatsMenu({ seats: seats_ }: { seats: Seat[] }) {
|
||||
</div>
|
||||
|
||||
<Button size="sm" variant="outline" asChild>
|
||||
<Link to="../enrollments/seats">
|
||||
<PlusIcon /> Matricular
|
||||
</Link>
|
||||
<NavLink to="../enrollments/seats">
|
||||
{({ isPending }) => (
|
||||
<>{isPending ? <Spinner /> : <PlusIcon />} Matricular</>
|
||||
)}
|
||||
</NavLink>
|
||||
</Button>
|
||||
</>
|
||||
) : (
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Nenhuma matrícula aberta foi encontrada para esta compra.
|
||||
Não há matrículas abertas pertencentes a esta compra.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user