Skip to content

Commit be8347a

Browse files
author
Antonio Contreras LEMONCODE
committed
Remove validation message. We use international validations
1 parent e0b9afc commit be8347a

2 files changed

Lines changed: 3 additions & 20 deletions

File tree

src/pods/employee/components/data.validations.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,13 @@ import { matchField } from '@lemoncode/fonk-match-field-validator';
44

55
export const validationSchema: ValidationSchema = {
66
field: {
7-
name: [
8-
{
9-
validator: Validators.required,
10-
message: 'Campo obligatorio',
11-
},
12-
],
7+
name: [Validators.required],
138
email: [
149
{
1510
validator: Validators.email,
16-
message: 'Introduce un email válido',
1711
},
1812
{
1913
validator: Validators.required,
20-
message: 'Campo obligatorio',
2114
},
2215
],
2316
temporalPassword: [

src/pods/employee/components/report.validations.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,8 @@ import { createFormikValidation } from '@lemoncode/fonk-formik';
33

44
const validationSchema: ValidationSchema = {
55
field: {
6-
month: [
7-
{
8-
validator: Validators.required,
9-
message: 'Campo obligatorio',
10-
},
11-
],
12-
year: [
13-
{
14-
validator: Validators.required,
15-
message: 'Campo obligatorio',
16-
},
17-
],
6+
month: [Validators.required],
7+
year: [Validators.required],
188
},
199
};
2010

0 commit comments

Comments
 (0)