import React from 'react';
import {Link} from 'react-router';
import { connect } from 'react-redux';

import Header from '../components/header';
import Footer from '../components/footer';
import User from '../components/current_user';
import River from '../components/river_of_posts';
import Followed from '../components/most_followed_people';
import Tags from '../components/popular_tags';

class Index extends React.Component {
  render() {
    let currentUser = this.props.users[0];

    return (
      <div>
        <Header currentUser={currentUser} />
        <Link to="/auth">go to auth</Link>
        <User currentUser={currentUser} />
        <hr/>
        <p>This is a List-page</p>
        <hr/>
        <River posts={this.props.posts}/>
        <Followed/>
        <Tags/>
        <Footer/>
      </div>
    )
  }
}

function select(state) {
  return state;
}

export default connect(select)(Index);

@@ -563,97 +563,227 @@
    %3C
-Link to=%22/auth%22%3Ego to auth%3C/Link%3E%0A        %3CUser currentUser=%7BcurrentUser%7D /%3E%0A        %3Chr/
+div className=%22page__body%22%3E%0A          %3Cdiv className=%22page__sidebar%22%3E%0A            %3CUser currentUser=%7BcurrentUser%7D /%3E%0A            %3Cdiv className=%22layout__row%22%3E%0A              %3Ch3 className=%22head head-sub%22%3EPopular tags%3C/h3
 %3E%0A  
@@ -792,49 +792,356 @@
     
+ 
-%3Cp%3EThis is a List-page%3C/p%3E%0A        %3Chr/%3E%0A
+   %3C/div%3E%0A            %3Cdiv className=%22layout__row%22%3E%0A              %3Cdiv className=%22tags%22%3E%0A                %3Cspan className=%22tag%22%3EPsychology%3C/span%3E%0A                %3Cspan className=%22tag%22%3EGaming%3C/span%3E%0A              %3C/div%3E%0A            %3C/div%3E%0A          %3C/div%3E%0A          %3Cdiv className=%22page__content%22%3E%0A            %3Cp%3EThis is a List-page!!!!!!!!%3C/p%3E%0A    
     
@@ -1186,16 +1186,20 @@
         
+    
 %3CFollowe
@@ -1214,16 +1214,20 @@
     
+   
+ 
 %3CTags/%3E%0A
     
@@ -1222,16 +1222,48 @@
 %3CTags/%3E%0A
+          %3C/div%3E%0A        %3C/div%3E%0A
         

Update list template