update the rest of the organizations tests

This commit is contained in:
John Mitchell
2019-04-22 15:11:28 -04:00
parent 54499dbf69
commit 667cbb0c20
9 changed files with 138 additions and 252 deletions

View File

@@ -3,6 +3,7 @@ import React, {
Fragment
} from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import { Title, EmptyState, EmptyStateIcon, EmptyStateBody } from '@patternfly/react-core';
import { CubesIcon } from '@patternfly/react-icons';
import { I18n, i18nMark } from '@lingui/react';
@@ -344,4 +345,4 @@ Notifications.propTypes = {
};
export { Notifications as _Notifications };
export default withNetwork(Notifications);
export default withRouter(withNetwork(Notifications));

View File

@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Link, withRouter } from 'react-router-dom';
import { I18n } from '@lingui/react';
import { Trans, t } from '@lingui/macro';
@@ -178,4 +178,4 @@ class OrganizationDetail extends Component {
}
}
export default withNetwork(OrganizationDetail);
export default withRouter(withNetwork(OrganizationDetail));

View File

@@ -41,12 +41,6 @@ class OrganizationNotifications extends Component {
}
render () {
const {
location,
match,
history
} = this.props;
return (
<NotificationsList
onReadNotifications={this.readOrgNotifications}
@@ -54,9 +48,6 @@ class OrganizationNotifications extends Component {
onReadError={this.readOrgNotificationError}
onCreateSuccess={this.createOrgNotificationSuccess}
onCreateError={this.createOrgNotificationError}
match={match}
location={location}
history={history}
/>
);
}