|
@@ -1,5 +1,4 @@
|
|
|
import React, { PureComponent } from 'react';
|
|
import React, { PureComponent } from 'react';
|
|
|
-import { formatMessage } from 'umi/locale';
|
|
|
|
|
import { Popover, Icon, Tabs, Badge, Spin } from 'antd';
|
|
import { Popover, Icon, Tabs, Badge, Spin } from 'antd';
|
|
|
import classNames from 'classnames';
|
|
import classNames from 'classnames';
|
|
|
import List from './NoticeList';
|
|
import List from './NoticeList';
|
|
@@ -17,8 +16,8 @@ export default class NoticeIcon extends PureComponent {
|
|
|
onClear: () => {},
|
|
onClear: () => {},
|
|
|
loading: false,
|
|
loading: false,
|
|
|
locale: {
|
|
locale: {
|
|
|
- emptyText: formatMessage({ id: 'component.noticeIcon.empty' }),
|
|
|
|
|
- clear: formatMessage({ id: 'component.noticeIcon.clear' }),
|
|
|
|
|
|
|
+ emptyText: 'No notifications',
|
|
|
|
|
+ clear: 'Clear',
|
|
|
},
|
|
},
|
|
|
emptyImage: 'https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg',
|
|
emptyImage: 'https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg',
|
|
|
};
|
|
};
|