This commit is contained in:
2026-01-27 20:42:16 -03:00
parent 87f9aa0341
commit ecd91dbc5e
3 changed files with 19 additions and 6 deletions

View File

@@ -20,6 +20,11 @@ export function meta({}) {
return [{ title: 'Certificações' }]
}
const dtOptions: Intl.DateTimeFormatOptions = {
hour: '2-digit',
minute: '2-digit'
}
export async function loader({ context, request, params }: Route.LoaderArgs) {
const { searchParams } = new URL(request.url)
@@ -84,13 +89,19 @@ export default function Route({
<TableCell>{user.name}</TableCell>
<TableCell>{course.name}</TableCell>
<TableCell>
<DateTime>{enrolled_at}</DateTime>
<DateTime options={dtOptions}>
{enrolled_at}
</DateTime>
</TableCell>
<TableCell>
<DateTime>{completed_at}</DateTime>
<DateTime options={dtOptions}>
{completed_at}
</DateTime>
</TableCell>
<TableCell>
<DateTime>{expires_at}</DateTime>
<DateTime options={dtOptions}>
{expires_at}
</DateTime>
</TableCell>
</TableRow>
)

View File

@@ -42,6 +42,7 @@
"@types/node": "^25.0.8",
"@types/react": "^19.2.8",
"@types/react-dom": "^19.2.3",
"baseline-browser-mapping": "^2.9.18",
"prettier": "^3.7.4",
"remix-flat-routes": "^0.8.5",
"tailwindcss": "^4.1.18",