|
|
@@ -1,19 +1,22 @@
|
|
|
import React, {
|
|
|
useState, useEffect, FC, useCallback,
|
|
|
} from 'react';
|
|
|
+
|
|
|
+import { useTranslation } from 'react-i18next';
|
|
|
import {
|
|
|
Dropdown, DropdownToggle, DropdownMenu, DropdownItem,
|
|
|
} from 'reactstrap';
|
|
|
-import { useTranslation } from 'react-i18next';
|
|
|
-import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
+import SocketIoContainer from '~/client/services/SocketIoContainer';
|
|
|
+import { toastError } from '~/client/util/apiNotification';
|
|
|
import { apiv3Post } from '~/client/util/apiv3-client';
|
|
|
+import { useSWRxInAppNotifications, useSWRxInAppNotificationStatus } from '~/stores/in-app-notification';
|
|
|
+import loggerFactory from '~/utils/logger';
|
|
|
+
|
|
|
import { withUnstatedContainers } from '../UnstatedUtils';
|
|
|
+
|
|
|
import InAppNotificationList from './InAppNotificationList';
|
|
|
-import SocketIoContainer from '~/client/services/SocketIoContainer';
|
|
|
-import { useSWRxInAppNotifications, useSWRxInAppNotificationStatus } from '~/stores/in-app-notification';
|
|
|
|
|
|
-import { toastError } from '~/client/util/apiNotification';
|
|
|
|
|
|
const logger = loggerFactory('growi:InAppNotificationDropdown');
|
|
|
|
|
|
@@ -78,7 +81,7 @@ const InAppNotificationDropdown: FC<Props> = (props: Props) => {
|
|
|
<DropdownToggle tag="a" className="px-3 nav-link border-0 bg-transparent waves-effect waves-light">
|
|
|
<i className="icon-bell" /> {badge}
|
|
|
</DropdownToggle>
|
|
|
- <DropdownMenu right>
|
|
|
+ <DropdownMenu right className="grw-dropdown-notification-width">
|
|
|
{ inAppNotificationData != null && inAppNotificationData.docs.length === 0
|
|
|
// no items
|
|
|
? <DropdownItem disabled>{t('in_app_notification.mark_all_as_read')}</DropdownItem>
|