diff --git a/src/components/Layout/Header.js b/src/components/Layout/Header.js index a4214d2..9ade62e 100644 --- a/src/components/Layout/Header.js +++ b/src/components/Layout/Header.js @@ -1,20 +1,31 @@ import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' -import { Menu, Icon, Layout, Avatar } from 'antd' +import { Menu, Icon, Layout, Avatar, Popover, Badge, List } from 'antd' +import { Ellipsis } from 'ant-design-pro' import { Trans, withI18n } from '@lingui/react' import { setLocale } from 'utils' +import moment from 'moment' import classnames from 'classnames' import config from 'config' import styles from './Header.less' const { SubMenu } = Menu + @withI18n() class Header extends PureComponent { handleClickMenu = e => { e.key === 'SignOut' && this.props.onSignOut() } render() { - const { username, avatar, collapsed, onCollapseChange, i18n } = this.props + const { + i18n, + avatar, + username, + collapsed, + notifications, + onCollapseChange, + onAllNotificationsRead, + } = this.props const rightContent = [
) } + + rightContent.unshift( +