add referal code for registration

This commit is contained in:
smanylov
2026-02-06 13:13:29 +07:00
parent c4de107fba
commit f6ca797802
4 changed files with 55 additions and 4 deletions
+2
View File
@@ -137,6 +137,7 @@ export type FormState = {
phone: string;
companyName?: string;
agree: string;
referralCode?: string
},
mailConfirm?: boolean,
error: Record<string, string> | null
@@ -155,6 +156,7 @@ export async function registration(
const phone = formData.get('phone') as string || '';
const companyName = formData.get('companyName') as string || '';
const agree = formData.get('agree') as string || '';
const referralCode = formData.get('referralCode');
const SignupFormSchema = await getSignupFormSchema(accountType);