diff --git a/src/App.tsx b/src/App.tsx index bd84407059ce94276aaef8bdfbbfc5ad3964cc10..7e1b7e7f9c27e2408887309b5fd788d9116f4556 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,10 +1,10 @@ import React from 'react'; -import { LoginForm } from './components/AuthUser/LoginForm/LoginForm'; +import { AuthUser } from './components/AuthUser/AuthUser'; export const App: React.FC = () => ( <div className="App" data-testid="App"> <header className="App-header"> - <LoginForm /> + <AuthUser /> </header> </div> ); diff --git a/src/components/AuthUser/LoginForm/LoginForm.tsx b/src/components/AuthUser/LoginForm/LoginForm.tsx index eac45d98bf92b27cc4407fefbf58b38bbc3c1403..67f6e4713e49770cdda8a7b8d2859f5c4d1ecd66 100644 --- a/src/components/AuthUser/LoginForm/LoginForm.tsx +++ b/src/components/AuthUser/LoginForm/LoginForm.tsx @@ -38,12 +38,7 @@ export const LoginForm: React.FC = () => { const handleSubmit = (event: React.FormEvent): void => { event.preventDefault(); const errors: Array<string> = []; - if (!isEmailValid(formValues.email)) { - errors.push('email'); - console.log('Email address not valid'); - } else { - console.log(formValues); - } + if (!isEmailValid(formValues.email)) errors.push('email'); }; const classes = useStyles();