mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 02:00:01 -03:30
update the rest of the organizations tests
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user