change basic form to form context

This commit is contained in:
2026-01-23 16:49:24 +07:00
parent 9766684e03
commit ff2140b9ef
21 changed files with 558 additions and 804 deletions

View File

@@ -18,8 +18,8 @@ const AddNewUserButton = () => {
const prevent = usePreventAutoFocus();
return (
<Dialog>
<DialogTrigger>
<Dialog open={_open} onOpenChange={_setOpen}>
<DialogTrigger asChild>
<Button type="button" variant="default">
<PlusIcon />
{m.nav_add_new()}
@@ -39,7 +39,7 @@ const AddNewUserButton = () => {
{m.nav_add_new()}
</DialogDescription>
</DialogHeader>
<AdminCreateUserForm />
<AdminCreateUserForm onSubmit={_setOpen} />
</DialogContent>
</Dialog>
);