|
@@ -8,7 +8,7 @@ import { asyncLogin } from '../../../redux/authorization/operation';
|
|
|
import {
|
|
|
ILoginProps,
|
|
|
ILoginState,
|
|
|
-} from '../../../typescript/registration/interfaces';
|
|
|
+} from '../../../typescript/components/Registration/interfaces';
|
|
|
import togglePassword from '../helpers/helpers';
|
|
|
import s from './SignIn.module.css';
|
|
|
|
|
@@ -29,7 +29,7 @@ const SignInForm = ({ isLoading, doLogin }: ILoginProps) => {
|
|
|
className={s.signIn_input}
|
|
|
id="email"
|
|
|
name="email"
|
|
|
- label="Email..."
|
|
|
+ label="Email"
|
|
|
value={formik.values.email}
|
|
|
onChange={formik.handleChange}
|
|
|
error={formik.touched.email && Boolean(formik.errors.email)}
|
|
@@ -40,7 +40,7 @@ const SignInForm = ({ isLoading, doLogin }: ILoginProps) => {
|
|
|
className={s.signIn_input}
|
|
|
id="password"
|
|
|
name="password"
|
|
|
- label="Password..."
|
|
|
+ label="Password*"
|
|
|
type="password"
|
|
|
value={formik.values.password}
|
|
|
onChange={formik.handleChange}
|
|
@@ -72,7 +72,9 @@ const mapStateToProps = (state: ILoginState) => ({
|
|
|
isLoading: state.isLoading.flag,
|
|
|
});
|
|
|
|
|
|
-const mapDispatchToProps = (dispatch: any) => ({
|
|
|
+const mapDispatchToProps = (
|
|
|
+ dispatch: (dispatchAction: any) => Promise<void>,
|
|
|
+) => ({
|
|
|
doLogin: (login: string, password: string) =>
|
|
|
dispatch(asyncLogin(login, password)),
|
|
|
});
|