Unverified Commit bf78f566 authored by 偏右's avatar 偏右 Committed by GitHub

Merge pull request #20 from laozhu/fix_user_login

Fix login form submit problem with no tab
parents 5f6b84ed 6fd621c4
...@@ -127,9 +127,9 @@ class Login extends Component<LoginProps, LoginState> { ...@@ -127,9 +127,9 @@ class Login extends Component<LoginProps, LoginState> {
return ( return (
<LoginContext.Provider value={this.getContext()}> <LoginContext.Provider value={this.getContext()}>
<div className={classNames(className, styles.login)}> <div className={classNames(className, styles.login)}>
{tabs.length ? ( <Form onSubmit={this.handleSubmit}>
<React.Fragment> {tabs.length ? (
<Form onSubmit={this.handleSubmit}> <React.Fragment>
<Tabs <Tabs
animated={false} animated={false}
className={styles.tabs} className={styles.tabs}
...@@ -139,11 +139,11 @@ class Login extends Component<LoginProps, LoginState> { ...@@ -139,11 +139,11 @@ class Login extends Component<LoginProps, LoginState> {
{TabChildren} {TabChildren}
</Tabs> </Tabs>
{otherChildren} {otherChildren}
</Form> </React.Fragment>
</React.Fragment> ) : (
) : ( children
children )}
)} </Form>
</div> </div>
</LoginContext.Provider> </LoginContext.Provider>
); );
......
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