Home screen and PanelButtons
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user