add: 处理sonar提示的语法错误

This commit is contained in:
wenbo.dong 2017-07-11 11:03:34 +08:00
parent a2ac115c98
commit 68828ebd3b
2 changed files with 4 additions and 5 deletions

View File

@ -23,14 +23,14 @@ class Login extends Component {
<Form onSubmit={this.handleSubmit} className="login-form">
<FormItem>
{getFieldDecorator('userName', {
rules: [{ required: true, message: '请输入用户名!' }],
rules: [{ required: true, message: '请输入用户名!' }]
})(
<Input prefix={<Icon type="user" style={{ fontSize: 13 }} />} placeholder="Username" />
)}
</FormItem>
<FormItem>
{getFieldDecorator('password', {
rules: [{ required: true, message: '请输入密码!' }],
rules: [{ required: true, message: '请输入密码!' }]
})(
<Input prefix={<Icon type="lock" style={{ fontSize: 13 }} />} type="password" placeholder="Password" />
)}
@ -38,7 +38,7 @@ class Login extends Component {
<FormItem>
{getFieldDecorator('remember', {
valuePropName: 'checked',
initialValue: true,
initialValue: true
})(
<Checkbox>记住密码</Checkbox>
)}

View File

@ -8,7 +8,7 @@ const increaseAction = { type: 'increase' }
function mapStateToProps(state) {
return {
per: '测试数据',
per: '测试数据'
}
}
@ -24,4 +24,3 @@ const App = connect(
)(Login)
export default App