Skip to content

Commit 9245f92

Browse files
committed
Corrected first sample (password required)
1 parent 57763c5 commit 9245f92

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

samples/react/es6/00 SimpleForm/src/components/sampleForm/validations/customerFormValidation.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ const customerValidationConstraints = {
44
fields: {
55
fullname: [
66
{ validator: Validators.required }
7-
]
7+
],
8+
password: [
9+
{ validator: Validators.required }
10+
],
811
}
912
};
1013

samples/react/es6/01 SignupForm/src/components/sampleSignupForm/sampleSignupForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class SampleSignupForm extends React.Component {
1515
performSignup: React.PropTypes.func.isRequired,
1616
};
1717

18-
constructor() {
18+
constructor(props) {
1919
super(props);
2020

2121
this.onSave = this.onSave.bind(this);

samples/react/typescript/00 SimpleForm/src/components/sampleForm/validations/customerFormValidation.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ const customerValidationConstraints: ValidationConstraints = {
99
fields: {
1010
fullname: [
1111
{ validator: Validators.required }
12-
]
12+
],
13+
password: [
14+
{ validator: Validators.required }
15+
],
1316
}
1417
};
1518
const customerFormValidation = createFormValidation(customerValidationConstraints);

0 commit comments

Comments
 (0)