refactor(SW-898): replace signup server action with TRPC

This commit is contained in:
Chuma McPhoy
2024-11-15 08:30:52 +01:00
parent c309619cdc
commit 6958db3ca5
6 changed files with 116 additions and 111 deletions
+8
View File
@@ -1,5 +1,9 @@
import { z } from "zod"
import { Lang } from "@/constants/languages"
import { signUpSchema } from "@/components/Forms/Signup/schema"
// Query
export const staysInput = z
.object({
@@ -35,3 +39,7 @@ export const saveCreditCardInput = z.object({
transactionId: z.string(),
merchantId: z.string().optional(),
})
export const signupInput = signUpSchema.extend({
language: z.nativeEnum(Lang),
})