mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-10 11:58:41 +00:00
NORY-47: refactor identity traits form
This commit is contained in:
parent
95a068645e
commit
21ff2ad8f8
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { getIdentityApi } from '@/ory/sdk/server';
|
import { getIdentityApi } from '@/ory/sdk/server';
|
||||||
import { ErrorDisplay } from '@/components/error';
|
import { ErrorDisplay } from '@/components/error';
|
||||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||||
import { IdentityTraitForm } from '@/components/forms/IdentityTraitForm';
|
import { IdentityTraits } from '@/components/identity/identity-traits';
|
||||||
import { KratosSchema } from '@/lib/forms/identity-form';
|
import { KratosSchema } from '@/lib/forms/identity-form';
|
||||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table';
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table';
|
||||||
import { UAParser } from 'ua-parser-js';
|
import { UAParser } from 'ua-parser-js';
|
||||||
|
@ -128,7 +128,7 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
|
||||||
<CardDescription>All identity properties specified in the identity schema</CardDescription>
|
<CardDescription>All identity properties specified in the identity schema</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<IdentityTraitForm schema={identitySchema} identity={identity}/>
|
<IdentityTraits schema={identitySchema} identity={identity}/>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card>
|
<Card>
|
||||||
|
|
|
@ -18,7 +18,7 @@ interface IdentityTraitFormProps {
|
||||||
identity: Identity;
|
identity: Identity;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function IdentityTraitForm({ schema, identity }: IdentityTraitFormProps) {
|
export function IdentityTraits({ schema, identity }: IdentityTraitFormProps) {
|
||||||
|
|
||||||
const [currentIdentity, setCurrentIdentity] = useState(identity);
|
const [currentIdentity, setCurrentIdentity] = useState(identity);
|
||||||
|
|
Loading…
Add table
Reference in a new issue