|
@@ -49,9 +49,9 @@ class profilePage extends React.Component {
|
|
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
- const { user:{data}, userChangeRequest,passwordChangeRequest } = this.props;
|
|
|
|
|
|
+ const { user:{data},users, userChangeRequest,passwordChangeRequest } = this.props;
|
|
|
|
|
|
- // console.log('User', user);
|
|
|
|
|
|
+ console.log('User', users);
|
|
// console.log('Props', this.props);
|
|
// console.log('Props', this.props);
|
|
// console.log('State', this.state);
|
|
// console.log('State', this.state);
|
|
|
|
|
|
@@ -59,7 +59,7 @@ class profilePage extends React.Component {
|
|
<div className="page page--bottom-only profile-page">
|
|
<div className="page page--bottom-only profile-page">
|
|
<section className="container section section--about">
|
|
<section className="container section section--about">
|
|
{/* <h2 className="section__element section__element--header">{data.login}</h2> */}
|
|
{/* <h2 className="section__element section__element--header">{data.login}</h2> */}
|
|
-
|
|
|
|
|
|
+
|
|
<div className="sedtion__element section__element--login">
|
|
<div className="sedtion__element section__element--login">
|
|
<h3>Email</h3>
|
|
<h3>Email</h3>
|
|
{/* <p>{user.login}<button className="link link--btn right" >Change login</button></p> */}
|
|
{/* <p>{user.login}<button className="link link--btn right" >Change login</button></p> */}
|
|
@@ -102,7 +102,8 @@ class profilePage extends React.Component {
|
|
|
|
|
|
const
|
|
const
|
|
mapStateToProps = state => ({
|
|
mapStateToProps = state => ({
|
|
- user: state.user
|
|
|
|
|
|
+ user: state.user,
|
|
|
|
+ users:state.users
|
|
});
|
|
});
|
|
|
|
|
|
const mapDispatchToProps = dispatch => bindActionCreators({ userChangeRequest, passwordChangeRequest }, dispatch);
|
|
const mapDispatchToProps = dispatch => bindActionCreators({ userChangeRequest, passwordChangeRequest }, dispatch);
|