Skip to content

Commit 2e50cf8

Browse files
committed
update icon
1 parent 781ea48 commit 2e50cf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pages/login/login.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react'
22
import {inject, observer} from 'mobx-react'
33
import { Form, Input, Button, Checkbox } from 'antd'
4+
import { UserOutlined, LockOutlined } from '@ant-design/icons'
45

56
const FormItem = Form.Item
67

@@ -57,11 +58,11 @@ export default class Login extends React.Component<ICommonProps> {
5758
'paddingTop': '15%'}}>
5859
<h2>管理后台</h2>
5960
<FormItem>
60-
<Input prefix={<Icon type="user" style={{ color: 'rgba(0,0,0,.25)' }} />} placeholder="Username"
61+
<Input prefix={<UserOutlined />} placeholder="Username"
6162
onChange={e => inputChange(e.target.value, 'username')}/>
6263
</FormItem>
6364
<FormItem>
64-
<Input prefix={<Icon type="lock" style={{ color: 'rgba(0,0,0,.25)' }} />} type="password" placeholder="Password"
65+
<Input prefix={<LockOutlined />} type="password" placeholder="Password"
6566
onChange={e => inputChange(e.target.value, 'pwd')}/>
6667
</FormItem>
6768
<FormItem>

0 commit comments

Comments
 (0)