|
@@ -2,6 +2,7 @@ import React, { useRef, useState } from 'react';
|
|
|
import { connect } from 'react-redux';
|
|
|
import { NavLink } from 'react-router-dom';
|
|
|
import { actionLogin } from '../../Actions/action_login';
|
|
|
+import LoginError from '../../Components/LoginError/LoginError';
|
|
|
import './Login.css';
|
|
|
|
|
|
const Login = ({onLogin=null}) => { //деструктуризация объекта
|
|
@@ -24,6 +25,8 @@ const Login = ({onLogin=null}) => { //деструктуризация
|
|
|
<nav>
|
|
|
<NavLink to="/registration" >Registration</NavLink>
|
|
|
</nav>
|
|
|
+
|
|
|
+ <LoginError />
|
|
|
</div>
|
|
|
)
|
|
|
}
|