Home screen and PanelButtons

This commit is contained in:
John Lyon-Smith
2018-03-02 14:20:51 -08:00
parent 37cbc6becd
commit d347adcf33
13 changed files with 182 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react'
import { autoBind } from 'auto-bind2'
import { reactAutoBind } from 'auto-bind2'
import { UserList } from './UserList'
import { UserForm } from './UserForm'
import { UserFormPlaceholder } from './UserFormPlaceholder'
@@ -10,7 +10,7 @@ import { YesNoMessageModal, MessageModal, ChangeEmailModal, WaitModal } from '..
export class Users extends React.Component {
constructor() {
super()
autoBind(this, (name) => (name.startsWith('handle')))
reactAutoBind(this)
this.state = {
selectedUser: null,
users: [],
@@ -239,16 +239,12 @@ export class Users extends React.Component {
return (
<div>
<div>Users</div>
<Row>
{/* User List - Displayed on left hand side. */}
<Row.Item width={5}>
<UserList users={this.state.users} selectedUser={this.state.selectedUser}
selectionModified={this.state.modified} onUserListClick={this.handleUserListClick}
onAddNewUser={this.handleAddNewUser} />
</Row.Item>
{/* User Info - Displayed on right hand side. */}
<Row.Item>
{
this.state.selectedUser