NORY-47: refactor identity actions

This commit is contained in:
Markus Thielker 2025-01-03 22:11:09 +01:00
parent 86784d3b92
commit 95a068645e
No known key found for this signature in database
5 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ import {
AlertDialogHeader,
AlertDialogTitle,
} from '@/components/ui/alert-dialog';
import { blockIdentity, deleteIdentity, deleteIdentitySessions, unblockIdentity } from '@/app/(inside)/user/action';
import { blockIdentity, deleteIdentity, deleteIdentitySessions, unblockIdentity } from '@/lib/action/identity';
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
interface IdentityDataTableProps {

View file

@ -10,7 +10,7 @@ import DynamicForm from '@/components/dynamic-form';
import { FormControl, FormDescription, FormField, FormItem, FormLabel } from '@/components/ui/form';
import { Textarea } from '@/components/ui/textarea';
import { zu } from 'zod_utilz';
import { updateIdentity } from '@/app/(inside)/user/action';
import { updateIdentity } from '@/lib/action/identity';
import { useState } from 'react';
interface IdentityTraitFormProps {

View file

@ -11,7 +11,7 @@ import {
deleteIdentity,
deleteIdentitySessions,
unblockIdentity,
} from '@/app/(inside)/user/action';
} from '@/lib/action/identity';
import { toast } from 'sonner';
import { useRouter } from 'next/navigation';

View file

@ -2,7 +2,7 @@
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table';
import { ConfirmationDialogWrapper } from '@/components/confirmation-dialog-wrapper';
import { deleteIdentityCredential } from '@/app/(inside)/user/action';
import { deleteIdentityCredential } from '@/lib/action/identity';
import { Button } from '@/components/ui/button';
import { Trash } from 'lucide-react';
import { DeleteIdentityCredentialsTypeEnum, Identity } from '@ory/client';