Rename chronograf/AllUsersTable to chronograf/UsersTable since serves as single-stop table

pull/10616/head
Jared Scheib 2017-10-31 15:39:23 -07:00
parent 8ad034fcef
commit 4bf7fafdbd
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import Dropdown from 'shared/components/Dropdown'
import {DEFAULT_ORG, NO_ORG, USER_ROLES} from 'src/admin/constants/dummyUsers'
import {USERS_TABLE} from 'src/admin/constants/chronografTableSizing'
class ChronografAllUsersTable extends Component {
class ChronografUsersTable extends Component {
constructor(props) {
super(props)
}
@ -187,7 +187,7 @@ class ChronografAllUsersTable extends Component {
const {arrayOf, func, shape, string} = PropTypes
ChronografAllUsersTable.propTypes = {
ChronografUsersTable.propTypes = {
filteredUsers: arrayOf(shape),
selectedUsers: arrayOf(shape),
onFilterUsers: func.isRequired,
@ -197,4 +197,4 @@ ChronografAllUsersTable.propTypes = {
organizationName: string,
onUpdateUserRole: func.isRequired,
}
export default ChronografAllUsersTable
export default ChronografUsersTable

View File

@ -1,7 +1,7 @@
import React, {Component, PropTypes} from 'react'
import SourceIndicator from 'shared/components/SourceIndicator'
import AllUsersTable from 'src/admin/components/chronograf/AllUsersTable'
import UsersTable from 'src/admin/components/chronograf/UsersTable'
import BatchActionsBar from 'src/admin/components/chronograf/BatchActionsBar'
import Dropdown from 'shared/components/Dropdown'
@ -159,7 +159,7 @@ class AdminChronografPage extends Component {
onChangeRoles={this.handleBatchChangeUsersRole}
/>
<div className="panel-body chronograf-admin-table--panel">
<AllUsersTable
<UsersTable
filteredUsers={filteredUsers}
organizationName={organizationName}
onFilterUsers={this.handleFilterUsers}