From b2be3888605631763a2fd15de5df3b1168a8464a Mon Sep 17 00:00:00 2001 From: 1ambda <1amb4a@gmail.com> Date: Sat, 27 Feb 2016 15:07:39 +0900 Subject: [PATCH] refactor: flatten profile state #21 --- app/src/containers/App.js | 21 +++++++++++++-------- app/src/reducers/ProfileReducer.js | 4 ++-- bundle.js | 4 ++-- bundle.js.map | 2 +- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/app/src/containers/App.js b/app/src/containers/App.js index 5f3bbf8..8666feb 100644 --- a/app/src/containers/App.js +++ b/app/src/containers/App.js @@ -1,5 +1,3 @@ -// This file bootstraps the app with the boilerplate necessary -// to support hot reloading in Redux import React from 'react' import { bindActionCreators, } from 'redux' import { connect, } from 'react-redux' @@ -19,8 +17,7 @@ class App extends React.Component { } render() { - const { profile, actions, } = this.props - const { user, languages, repositories, activities, _$meta, } = profile + const { actions, meta, user, languages, repositories, activities, } = this.props return (
@@ -32,15 +29,19 @@ class App extends React.Component { repositories={repositories} activities={activities} />
-