Commit 3357ffbb authored by afc163's avatar afc163

remove alert closable

parent 7ae6bac9
...@@ -60,15 +60,15 @@ export default class Login extends Component { ...@@ -60,15 +60,15 @@ export default class Login extends Component {
); );
} }
msg = (message) => { renderMessage = (message) => {
return (<Alert return (
key={new Date().getTime()} <Alert
style={{ marginBottom: 16 }} style={{ marginBottom: 16 }}
message={message} message={message}
type="error" type="error"
showIcon showIcon
closable />
/>); );
} }
render() { render() {
...@@ -84,7 +84,7 @@ export default class Login extends Component { ...@@ -84,7 +84,7 @@ export default class Login extends Component {
login.status === 'error' && login.status === 'error' &&
login.type === 'account' && login.type === 'account' &&
login.submitting === false && login.submitting === false &&
this.msg('θ΄¦ζˆ·ζˆ–ε―†η ι”™θ――') this.renderMessage('θ΄¦ζˆ·ζˆ–ε―†η ι”™θ――')
} }
<FormItem> <FormItem>
{getFieldDecorator('userName', { {getFieldDecorator('userName', {
...@@ -117,7 +117,7 @@ export default class Login extends Component { ...@@ -117,7 +117,7 @@ export default class Login extends Component {
login.status === 'error' && login.status === 'error' &&
login.type === 'mobile' && login.type === 'mobile' &&
login.submitting === false && login.submitting === false &&
this.msg('ιͺŒθ―η ι”™θ――') this.renderMessage('ιͺŒθ―η ι”™θ――')
} }
<FormItem> <FormItem>
{getFieldDecorator('mobile', { {getFieldDecorator('mobile', {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment