|
|
@@ -1,11 +1,10 @@
|
|
|
import React from 'react';
|
|
|
|
|
|
-import PropTypes from 'prop-types';
|
|
|
import { useTranslation } from 'next-i18next';
|
|
|
+import PropTypes from 'prop-types';
|
|
|
import urljoin from 'url-join';
|
|
|
|
|
|
import AdminNotificationContainer from '~/client/services/AdminNotificationContainer';
|
|
|
-import AppContainer from '~/client/services/AppContainer';
|
|
|
import { toastSuccess, toastError } from '~/client/util/apiNotification';
|
|
|
import { apiv3Put } from '~/client/util/apiv3-client';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
@@ -176,7 +175,6 @@ class GlobalNotificationList extends React.Component {
|
|
|
|
|
|
GlobalNotificationList.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|
|
|
- appContainer: PropTypes.instanceOf(AppContainer).isRequired,
|
|
|
adminNotificationContainer: PropTypes.instanceOf(AdminNotificationContainer).isRequired,
|
|
|
|
|
|
};
|
|
|
@@ -187,6 +185,6 @@ const GlobalNotificationListWrapperFC = (props) => {
|
|
|
return <GlobalNotificationList t={t} {...props} />;
|
|
|
};
|
|
|
|
|
|
-const GlobalNotificationListWrapper = withUnstatedContainers(GlobalNotificationListWrapperFC, [AppContainer, AdminNotificationContainer]);
|
|
|
+const GlobalNotificationListWrapper = withUnstatedContainers(GlobalNotificationListWrapperFC, [AdminNotificationContainer]);
|
|
|
|
|
|
export default GlobalNotificationListWrapper;
|