|
@@ -1,19 +1,22 @@
|
|
|
import React, {
|
|
import React, {
|
|
|
useState, useEffect, FC, useCallback,
|
|
useState, useEffect, FC, useCallback,
|
|
|
} from 'react';
|
|
} from 'react';
|
|
|
|
|
+
|
|
|
|
|
+import { useTranslation } from 'react-i18next';
|
|
|
import {
|
|
import {
|
|
|
Dropdown, DropdownToggle, DropdownMenu, DropdownItem,
|
|
Dropdown, DropdownToggle, DropdownMenu, DropdownItem,
|
|
|
} from 'reactstrap';
|
|
} 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 { apiv3Post } from '~/client/util/apiv3-client';
|
|
|
|
|
+import { useSWRxInAppNotifications, useSWRxInAppNotificationStatus } from '~/stores/in-app-notification';
|
|
|
|
|
+import loggerFactory from '~/utils/logger';
|
|
|
|
|
+
|
|
|
import { withUnstatedContainers } from '../UnstatedUtils';
|
|
import { withUnstatedContainers } from '../UnstatedUtils';
|
|
|
|
|
+
|
|
|
import InAppNotificationList from './InAppNotificationList';
|
|
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');
|
|
const logger = loggerFactory('growi:InAppNotificationDropdown');
|
|
|
|
|
|
|
@@ -74,7 +77,7 @@ const InAppNotificationDropdown: FC<Props> = (props: Props) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <Dropdown className="notification-wrapper" isOpen={isOpen} toggle={toggleDropdownHandler}>
|
|
|
|
|
|
|
+ <Dropdown className="notification-wrapper grw-notification-dropdown" isOpen={isOpen} toggle={toggleDropdownHandler}>
|
|
|
<DropdownToggle tag="a" className="px-3 nav-link border-0 bg-transparent waves-effect waves-light">
|
|
<DropdownToggle tag="a" className="px-3 nav-link border-0 bg-transparent waves-effect waves-light">
|
|
|
<i className="icon-bell" /> {badge}
|
|
<i className="icon-bell" /> {badge}
|
|
|
</DropdownToggle>
|
|
</DropdownToggle>
|