Commit 3357ffbb authored by afc163's avatar afc163

remove alert closable

parent 7ae6bac9
......@@ -60,15 +60,15 @@ export default class Login extends Component {
);
}
msg = (message) => {
return (<Alert
key={new Date().getTime()}
style={{ marginBottom: 16 }}
message={message}
type="error"
showIcon
closable
/>);
renderMessage = (message) => {
return (
<Alert
style={{ marginBottom: 16 }}
message={message}
type="error"
showIcon
/>
);
}
render() {
......@@ -84,7 +84,7 @@ export default class Login extends Component {
login.status === 'error' &&
login.type === 'account' &&
login.submitting === false &&
this.msg('θ΄¦ζˆ·ζˆ–ε―†η ι”™θ――')
this.renderMessage('θ΄¦ζˆ·ζˆ–ε―†η ι”™θ――')
}
<FormItem>
{getFieldDecorator('userName', {
......@@ -117,7 +117,7 @@ export default class Login extends Component {
login.status === 'error' &&
login.type === 'mobile' &&
login.submitting === false &&
this.msg('ιͺŒθ―η ι”™θ――')
this.renderMessage('ιͺŒθ―η ι”™θ――')
}
<FormItem>
{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