remove OrganizationTableRowDefault bc its not used and update the verbiage for the empty providers table

pull/10616/head
Iris Scholten 2018-02-12 15:19:57 -08:00
parent fc00b95141
commit cc8d0c7354
2 changed files with 1 additions and 61 deletions

View File

@ -1,60 +0,0 @@
import React, {PropTypes, Component} from 'react'
import SlideToggle from 'shared/components/SlideToggle'
import Dropdown from 'shared/components/Dropdown'
import {USER_ROLES} from 'src/admin/constants/dummyUsers'
// This is a non-editable organization row, used currently for DEFAULT_ORG
class OrganizationsTableRowDefault extends Component {
handleChooseDefaultRole = role => {
const {organization, onChooseDefaultRole} = this.props
onChooseDefaultRole(organization, role.name)
}
render() {
const {organization} = this.props
const dropdownRolesItems = USER_ROLES.map(role => ({
...role,
text: role.name,
}))
return (
<div className="fancytable--row">
<div className="fancytable--td orgs-table--id">
{organization.id}
</div>
<div className="fancytable--td orgs-table--name">
{organization.name}
</div>
<div className="fancytable--td orgs-table--default-role">
<Dropdown
items={dropdownRolesItems}
onChoose={this.handleChooseDefaultRole}
selected={organization.defaultRole}
className="dropdown-stretch"
/>
</div>
<button
className="btn btn-sm btn-default btn-square orgs-table--delete"
disabled={true}
>
<span className="icon trash" />
</button>
</div>
)
}
}
const {func, shape, string} = PropTypes
OrganizationsTableRowDefault.propTypes = {
organization: shape({
id: string,
name: string.isRequired,
}).isRequired,
onChooseDefaultRole: func.isRequired,
}
export default OrganizationsTableRowDefault

View File

@ -107,7 +107,7 @@ class ProvidersTable extends Component {
<div className="generic-empty-state">
<h4 style={{margin: '50px 0'}}>
Looks like you have no mappings<br />
New users will not be able to sign in
New users will not be able to sign up automatically
</h4>
<button
className="btn btn-sm btn-primary"