mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-10 11:58:41 +00:00
NORY-47: add identity actions to identity details page
This commit is contained in:
parent
ced4fb6513
commit
6edf6ee1b3
1 changed files with 11 additions and 1 deletions
|
@ -9,6 +9,7 @@ import { UAParser } from 'ua-parser-js';
|
||||||
import { RecoveryIdentityAddress, VerifiableIdentityAddress } from '@ory/client';
|
import { RecoveryIdentityAddress, VerifiableIdentityAddress } from '@ory/client';
|
||||||
import { Badge } from '@/components/ui/badge';
|
import { Badge } from '@/components/ui/badge';
|
||||||
import { Check, X } from 'lucide-react';
|
import { Check, X } from 'lucide-react';
|
||||||
|
import { IdentityActions } from '@/components/identity/identity-actions';
|
||||||
|
|
||||||
interface MergedAddress {
|
interface MergedAddress {
|
||||||
recovery_id?: string;
|
recovery_id?: string;
|
||||||
|
@ -120,7 +121,7 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
|
||||||
<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 xl:grid-cols-2 gap-4">
|
<div className="grid grid-cols-1 xl:grid-cols-2 gap-4">
|
||||||
<Card className="row-span-2">
|
<Card className="row-span-3">
|
||||||
<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>
|
||||||
|
@ -129,6 +130,15 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
|
||||||
<IdentityTraitForm schema={identitySchema} identity={identity}/>
|
<IdentityTraitForm schema={identitySchema} identity={identity}/>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Actions</CardTitle>
|
||||||
|
<CardDescription>Quick actions to manage the identity</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<IdentityActions identity={identity}/>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Addresses</CardTitle>
|
<CardTitle>Addresses</CardTitle>
|
||||||
|
|
Loading…
Add table
Reference in a new issue