mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-14 13:18:43 +00:00
NORY-47: improve identity details layout
This commit is contained in:
parent
0485c224b0
commit
152ec171c5
1 changed files with 3 additions and 6 deletions
|
@ -87,10 +87,7 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
|
||||||
});
|
});
|
||||||
|
|
||||||
const sessions = await identityApi.listIdentitySessions({ id: identityId })
|
const sessions = await identityApi.listIdentitySessions({ id: identityId })
|
||||||
.then((response) => {
|
.then((response) => response.data)
|
||||||
console.log('sessions', response.data);
|
|
||||||
return response.data;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
console.log('No sessions found');
|
console.log('No sessions found');
|
||||||
});
|
});
|
||||||
|
@ -122,8 +119,8 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
|
||||||
<p className="text-3xl font-bold leading-tight tracking-tight">{addresses[0].value}</p>
|
<p className="text-3xl font-bold leading-tight tracking-tight">{addresses[0].value}</p>
|
||||||
<p className="text-lg font-light">{identity.id}</p>
|
<p className="text-lg font-light">{identity.id}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div className="grid grid-cols-1 xl:grid-cols-2 gap-4">
|
||||||
<Card>
|
<Card className="row-span-2">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Traits</CardTitle>
|
<CardTitle>Traits</CardTitle>
|
||||||
<CardDescription>All identity properties specified in the identity schema</CardDescription>
|
<CardDescription>All identity properties specified in the identity schema</CardDescription>
|
||||||
|
|
Loading…
Add table
Reference in a new issue