NORY-47: refactor identity traits form

This commit is contained in:
Markus Thielker 2025-01-03 22:11:45 +01:00
parent 95a068645e
commit 21ff2ad8f8
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ import React from 'react';
import { getIdentityApi } from '@/ory/sdk/server';
import { ErrorDisplay } from '@/components/error';
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 { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table';
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>
</CardHeader>
<CardContent>
<IdentityTraitForm schema={identitySchema} identity={identity}/>
<IdentityTraits schema={identitySchema} identity={identity}/>
</CardContent>
</Card>
<Card>

View file

@ -18,7 +18,7 @@ interface IdentityTraitFormProps {
identity: Identity;
}
export function IdentityTraitForm({ schema, identity }: IdentityTraitFormProps) {
export function IdentityTraits({ schema, identity }: IdentityTraitFormProps) {
const [currentIdentity, setCurrentIdentity] = useState(identity);