Skip to content
Snippets Groups Projects
Commit c490a02c authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

added feature to keep user info in case of an error

parent a20a44b3
Branches
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/
import React, {useState} from "react";
import React, {useState, useEffect} from "react";
import GoogleLogin from 'react-google-login'
import { Button } from '@material-ui/core';
//import FacebookLogin from 'react-facebook-login';
......@@ -121,10 +121,15 @@ export default function SignUpContainer (props) {
if (!(formNome.key || formEmail.key || formSenha.key)) {
props.handleLoginInfo(newLogin)
limpaCamposForm()
}
}
useEffect(() => {
limpaCamposForm()
}, [props.triggerLimpaCamposForm]
)
return (
<ContainerStyled >
<DialogHeaderStyled>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment