Explorar o código

fixed the login component not pass the object children

triste %!s(int64=7) %!d(string=hai) anos
pai
achega
d9793524b7
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/components/Login/index.js

+ 1 - 3
src/components/Login/index.js

@@ -113,9 +113,7 @@ class Login extends Component {
                 </Tabs>
                 {otherChildren}
               </React.Fragment>
-            ) : (
-              [...children]
-            )}
+            ) : children}
           </Form>
         </div>
       </LoginContext.Provider>