fix(users): resolve import path and type errors

This commit is contained in:
Andrej Spielmann
2026-03-26 16:53:02 +01:00
parent a0ec4829b1
commit 9c8acfd30e
2 changed files with 8 additions and 7 deletions
@@ -17,7 +17,7 @@ import {
import { Plus, Pencil, Trash2, Key } from "lucide-react"
import { toast } from "sonner"
import { UserForm } from "@/components/users/user-form"
import { FadeIn } from "@/components/animations"
import { FadeIn } from "@/components/ui/animations"
const roleColors: Record<string, string> = {
superadmin: 'bg-red-100 text-red-800',
@@ -205,7 +205,7 @@ export default function UsersPage() {
<UserForm
open={isFormOpen}
onOpenChange={setIsFormOpen}
onSubmit={formMode === 'create' ? handleCreate : handleUpdate}
onSubmit={formMode === 'create' ? ((data: ICreateUserInput) => handleCreate(data)) : ((data: IUpdateUserInput) => handleUpdate(data))}
user={editingUser || undefined}
mode={formMode}
/>