mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
TopbarMobileMenu uses NotificationBadge
This commit is contained in:
parent
57262b0882
commit
6f07688529
2 changed files with 3 additions and 27 deletions
|
|
@ -60,22 +60,7 @@
|
|||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.notificationCount {
|
||||
/* Font */
|
||||
@apply --marketplaceH6FontStyles;
|
||||
color: var(--matterColorLight);
|
||||
text-align: center;
|
||||
|
||||
background-color: var(--failColor);
|
||||
|
||||
/* Layout of a red dot */
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
padding-right: 6px;
|
||||
padding-left: 6px;
|
||||
.notificationBadge {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: -26px;
|
||||
|
|
@ -84,15 +69,6 @@
|
|||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Font margins off */
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
@media (--desktopViewport) {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.createNewListingLink {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
import React, { PropTypes } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { AvatarLarge, InlineTextButton, NamedLink } from '../../components';
|
||||
import { AvatarLarge, InlineTextButton, NamedLink, NotificationBadge } from '../../components';
|
||||
|
||||
import css from './TopbarMobileMenu.css';
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ const TopbarMobileMenu = props => {
|
|||
}
|
||||
|
||||
const notificationCountBadge = notificationCount > 0
|
||||
? <span className={css.notificationCount}>{notificationCount}</span>
|
||||
? <NotificationBadge className={css.notificationBadge} count={notificationCount} />
|
||||
: null;
|
||||
const inboxLink = (
|
||||
<NamedLink
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue