update OrganizsationAccess and OrganizationAccessList w mountWithContexts

This commit is contained in:
John Mitchell
2019-04-18 17:18:19 -04:00
parent a6f79c646d
commit 54499dbf69
6 changed files with 54 additions and 142 deletions

View File

@@ -148,11 +148,7 @@ class Organization extends Component {
<Route
path="/organizations/:id/access"
render={() => (
<OrganizationAccess
match={match}
location={location}
history={history}
/>
<OrganizationAccess />
)}
/>
<Route

View File

@@ -23,19 +23,10 @@ class OrganizationAccess extends React.Component {
}
render () {
const {
location,
match,
history,
} = this.props;
return (
<OrganizationAccessList
getAccessList={this.getOrgAccessList}
removeRole={this.removeRole}
match={match}
location={location}
history={history}
/>
);
}