finish timeline
This commit is contained in:
@@ -90,8 +90,7 @@ export default function Route({ loaderData: { data } }: Route.ComponentProps) {
|
||||
</BreadcrumbList>
|
||||
</Breadcrumb>
|
||||
|
||||
{/*<Await resolve={data} errorElement={<NotFound />}>*/}
|
||||
<Await resolve={data}>
|
||||
<Await resolve={data} errorElement={<NotFound />}>
|
||||
{({ enrolled, scheduled, sk, created_by }) => {
|
||||
const succeed = enrolled?.filter(
|
||||
({ status }) => status === 'success'
|
||||
@@ -197,12 +196,12 @@ export default function Route({ loaderData: { data } }: Route.ComponentProps) {
|
||||
|
||||
<CardFooter>
|
||||
<ul
|
||||
className="grid lg:grid-cols-2 gap-x-2.5 text-muted-foreground text-sm
|
||||
className="lg:flex gap-2.5 text-muted-foreground text-sm
|
||||
*:flex *:gap-1 *:items-center"
|
||||
>
|
||||
<li>
|
||||
<CalendarIcon className="size-3.5" />
|
||||
{formatted.format(new Date(sk))}
|
||||
{datetime.format(new Date(sk))}
|
||||
</li>
|
||||
<li>
|
||||
<UserIcon className="size-3.5" /> {created_by.name}
|
||||
@@ -219,7 +218,7 @@ export default function Route({ loaderData: { data } }: Route.ComponentProps) {
|
||||
)
|
||||
}
|
||||
|
||||
const formatted = new Intl.DateTimeFormat('pt-BR', {
|
||||
const datetime = new Intl.DateTimeFormat('pt-BR', {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
|
||||
Reference in New Issue
Block a user