NORY-47: refactor identity actions
This commit is contained in:
parent
86784d3b92
commit
95a068645e
5 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue