fix(auth) : keep server action exports async
This commit is contained in:
@@ -14,11 +14,6 @@ export interface CreateAccountState {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export const initialCreateAccountState: CreateAccountState = {
|
||||
status: "idle",
|
||||
message: "",
|
||||
};
|
||||
|
||||
const accountSchema = z
|
||||
.object({
|
||||
name: z.string().trim().min(1),
|
||||
|
||||
@@ -7,8 +7,8 @@ import { toast } from "sonner";
|
||||
|
||||
import {
|
||||
createAccount,
|
||||
initialCreateAccountState,
|
||||
removeAccount,
|
||||
type CreateAccountState,
|
||||
} from "@/app/admin/register/actions";
|
||||
import { DeleteConfirmationDialog } from "@/components/admin/delete-confirmation-dialog";
|
||||
import {
|
||||
@@ -33,6 +33,12 @@ import {
|
||||
} from "@/components/ui/field";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Spinner } from "@/components/ui/spinner";
|
||||
|
||||
const initialCreateAccountState: CreateAccountState = {
|
||||
status: "idle",
|
||||
message: "",
|
||||
};
|
||||
|
||||
export function RegisterCard({
|
||||
accounts,
|
||||
currentUserId,
|
||||
|
||||
Reference in New Issue
Block a user