diff --git a/src/containers/organizations.js b/src/containers/organizations.js index 12ea8db..d8f2612 100644 --- a/src/containers/organizations.js +++ b/src/containers/organizations.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { browseOrganizations } from '../actions/index' import { bindActionCreators } from 'redux' +import Navigation from '../components/navigation' class Organizations extends Component { componentWillMount() { @@ -10,12 +11,31 @@ class Organizations extends Component { render() { - console.log(this.props) + if (this.props.organizations.organizations == undefined) { + return null; + } + const organizationList = this.props.organizations.organizations.map(organization => { + return ( +
+ +
+ ) + }) + + console.log(organizationList, 'orgazationList>>>>>>>>>') return ( -
- {/* {this.renderList()} */} -
+ +
+ {organizationList} +
+
) } } diff --git a/src/containers/users.js b/src/containers/users.js index cafaa34..90e1d99 100644 --- a/src/containers/users.js +++ b/src/containers/users.js @@ -37,10 +37,6 @@ class Users extends Component { console.log('this.props.users', this.props.users.users) return ( - - //
- // {/* {this.renderList()} */} - //
{newUsers}