feat: add created_at field to CreatedApiKeyResponse and update related handlers
This commit is contained in:
@@ -9,9 +9,7 @@ export default async function ApiKeysPage() {
|
||||
redirect("/login");
|
||||
}
|
||||
|
||||
const initialApiKeys = await getApiKeys(token).catch(() => ({
|
||||
keys: [],
|
||||
}));
|
||||
const initialApiKeys = await getApiKeys(token).catch(() => []);
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
@@ -21,7 +19,7 @@ export default async function ApiKeysPage() {
|
||||
Manage API keys for third-party applications.
|
||||
</p>
|
||||
</div>
|
||||
<ApiKeyList initialApiKeys={initialApiKeys.keys} />
|
||||
<ApiKeyList initialApiKeys={initialApiKeys} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -190,13 +190,13 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="profile-card__info" className="mt-4">
|
||||
<h1 id="profile-card__name" className="text-2xl font-bold">
|
||||
<div id="profile-card__info" className="mt-4 min-w-0">
|
||||
<h1 id="profile-card__name" className="text-2xl font-bold break-words">
|
||||
{user.displayName || user.username}
|
||||
</h1>
|
||||
<p
|
||||
id="profile-card__username"
|
||||
className="text-sm text-muted-foreground"
|
||||
className="text-sm text-muted-foreground break-all"
|
||||
>
|
||||
@{user.username}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user