Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions src/containers/organizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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 (
<div key={organization.id}>
<ul className="collection">
<li className="collection-item avatar">
<span className="title">{organization.name}</span>
<p>{organization.state}</p>
<p>{organization.createdAt.substring(0,10)}</p>
</li>
</ul>
</div>
)
})

console.log(organizationList, 'orgazationList>>>>>>>>>')

return (
<div>
{/* {this.renderList()} */}
</div>
<Navigation>
<div>
{organizationList}
</div>
</Navigation>
)
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/containers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ class Users extends Component {

console.log('this.props.users', this.props.users.users)
return (

// <div>
// {/* {this.renderList()} */}
// </div>
<Navigation>
<div>
{newUsers}
Expand Down