add text area validation
This commit is contained in:
@@ -83,6 +83,15 @@ export const loginFormSchema = z
|
||||
.trim(),
|
||||
})
|
||||
|
||||
|
||||
export const createComplaintSchema = z
|
||||
.object({
|
||||
textArea: z
|
||||
.string()
|
||||
.min(6, { error: 'text-area-error-fill-complaint-text' })
|
||||
.trim(),
|
||||
})
|
||||
|
||||
export const localDevelopmentUrl = process.env.DEV_URL ? process.env.DEV_URL : 'http://localhost';
|
||||
|
||||
export const API_BASE_URL = process.env.NODE_ENV === 'development'
|
||||
|
||||
Reference in New Issue
Block a user