diff --git a/web/app/(app)/dashboard/(components)/api-keys.tsx b/web/app/(app)/dashboard/(components)/api-keys.tsx
index 6b6d946..117cf1b 100644
--- a/web/app/(app)/dashboard/(components)/api-keys.tsx
+++ b/web/app/(app)/dashboard/(components)/api-keys.tsx
@@ -29,6 +29,7 @@ import {
} from '@/lib/api'
import { Skeleton } from '@/components/ui/skeleton'
import EmptyState from '@/components/shared/empty-state'
+import RelativeTime from '@/components/shared/relative-time'
import GenerateApiKey, {
type GenerateApiKeyHandle,
} from './generate-api-key'
@@ -217,23 +218,18 @@ export default function ApiKeys() {
- Created at:{' '}
- {new Date(apiKey.createdAt).toLocaleString('en-US', {
- dateStyle: 'medium',
- timeStyle: 'short',
- })}
+ Created
- Last used:{' '}
- {apiKey?.lastUsedAt && apiKey.usageCount
- ? new Date(apiKey.lastUsedAt).toLocaleString(
- 'en-US',
- {
- dateStyle: 'medium',
- timeStyle: 'short',
- }
- )
- : 'Never'}
+ Last used{' '}
+
@@ -351,13 +347,7 @@ export default function ApiKeys() {
{k.apiKey}
- Revoked{' '}
- {k.revokedAt
- ? new Date(k.revokedAt).toLocaleString('en-US', {
- dateStyle: 'medium',
- timeStyle: 'short',
- })
- : ''}
+ Revoked