Добавлена первичная вёрстка для профиля пользователя

This commit is contained in:
ErickSkrauch
2016-03-10 01:10:28 +03:00
parent e94b04551d
commit d725bc2bfe
8 changed files with 275 additions and 8 deletions

View File

@@ -2,6 +2,8 @@ import React, { Component } from 'react';
import { connect } from 'react-redux';
import ProfilePage from 'pages/profile/ProfilePage';
import authFlow from 'services/authFlow';
class IndexPage extends Component {
@@ -14,14 +16,9 @@ class IndexPage extends Component {
}
render() {
const {user, children} = this.props;
return (
<div>
<h1>
Hello {user.username}!
</h1>
{children}
<ProfilePage {...this.props} />
</div>
);
}