update the copies

This commit is contained in:
2026-01-26 20:32:06 -03:00
parent b3ac31d006
commit 6574c6b5e6
4 changed files with 46 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ import {
WalletIcon
} from 'lucide-react'
import { use, useEffect, useState } from 'react'
import { Link, redirect, useFetcher } from 'react-router'
import { Link, NavLink, redirect, useFetcher } from 'react-router'
import { cloudflareContext, userContext } from '@repo/auth/context'
import { Skeleton } from '@repo/ui/components/skeleton'
@@ -53,6 +53,7 @@ import { Bulk } from './bulk'
import { Payment } from './payment'
import { Review } from './review'
import { useWizardStore } from './store'
import { Spinner } from '@repo/ui/components/ui/spinner'
export function meta({}: Route.MetaArgs) {
return [{ title: 'Comprar matrículas' }]
@@ -166,7 +167,10 @@ export default function Route({
variant="outline"
className="bg-green-500/15 border-green-600/60 rounded-2xl"
>
<ItemMedia variant="icon">
<ItemMedia
className="bg-green-500/30 border-green-600/50"
variant="icon"
>
<MegaphoneIcon />
</ItemMedia>
<ItemContent>
@@ -178,9 +182,11 @@ export default function Route({
</ItemContent>
<ItemActions>
<Button size="sm" variant="outline" asChild>
<Link to="../enrollments/seats">
<PlusIcon /> Matricular
</Link>
<NavLink to="../enrollments/seats">
{({ isPending }) => (
<>{isPending ? <Spinner /> : <PlusIcon />} Matricular</>
)}
</NavLink>
</Button>
</ItemActions>
</Item>