|
@@ -22,17 +22,17 @@ const { RangePicker } = DatePicker; |
|
@@ -22,17 +22,17 @@ const { RangePicker } = DatePicker; |
22
|
const { TextArea } = Input;
|
22
|
const { TextArea } = Input;
|
23
|
|
23
|
|
24
|
@connect(({ loading }) => ({
|
24
|
@connect(({ loading }) => ({
|
25
|
- submitting: loading.effects['form/submitRegularForm'],
|
25
|
+ submitting: loading.effects['BLOCK_NAME/submitRegularForm'],
|
26
|
}))
|
26
|
}))
|
27
|
@Form.create()
|
27
|
@Form.create()
|
28
|
-class BasicForms extends PureComponent {
|
28
|
+class PAGE_NAME_UPPER_CAMEL_CASE extends PureComponent {
|
29
|
handleSubmit = e => {
|
29
|
handleSubmit = e => {
|
30
|
const { dispatch, form } = this.props;
|
30
|
const { dispatch, form } = this.props;
|
31
|
e.preventDefault();
|
31
|
e.preventDefault();
|
32
|
form.validateFieldsAndScroll((err, values) => {
|
32
|
form.validateFieldsAndScroll((err, values) => {
|
33
|
if (!err) {
|
33
|
if (!err) {
|
34
|
dispatch({
|
34
|
dispatch({
|
35
|
- type: 'form/submitRegularForm',
|
35
|
+ type: 'BLOCK_NAME/submitRegularForm',
|
36
|
payload: values,
|
36
|
payload: values,
|
37
|
});
|
37
|
});
|
38
|
}
|
38
|
}
|
|
@@ -244,4 +244,4 @@ class BasicForms extends PureComponent { |
|
@@ -244,4 +244,4 @@ class BasicForms extends PureComponent { |
244
|
}
|
244
|
}
|
245
|
}
|
245
|
}
|
246
|
|
246
|
|
247
|
-export default BasicForms; |
247
|
+export default PAGE_NAME_UPPER_CAMEL_CASE; |