1<Form.Item shouldUpdate className="submit">
2 {() => (
3 <Button
4 type="primary"
5 htmlType="submit"
6 disabled={
7 !form.isFieldsTouched(true) ||
8 form.getFieldsError().filter(({ errors }) => errors.length)
9 .length > 0
10 }
11 >
12 Log in
13 </Button>
14 )}
15</Form.Item>
16