Skip to content

Commit

Permalink
Add notificounters for NFT
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Oct 22, 2023
1 parent 011bdf6 commit 3ab69ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/components/modules/TopRightMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function TopRightMenu({account, savings_withdraws, price_per_golos, globalprops,
{link: repliesLink, icon: 'new/answer', value: tt('g.replies'), addon: <NotifiCounter fields="comment_reply" />},
{link: discussionsLink, icon: 'new/bell', value: tt('g.discussions'), addon: <NotifiCounter fields="subscriptions" />},
{link: mentionsLink, icon: 'new/mention', value: tt('g.mentions'), addon: <NotifiCounter fields="mention" />},
{link: walletLink, target: walletTarget(), icon: 'new/wallet', value: tt('g.wallet'), addon: <NotifiCounter fields="send,receive,fill_order,delegate_vs" />},
{link: walletLink, target: walletTarget(), icon: 'new/wallet', value: tt('g.wallet'), addon: <NotifiCounter fields="send,receive,fill_order,delegate_vs,nft_receive" />},
{link: donatesLink, target: walletTarget(), icon: 'hf/hf8', value: tt('g.rewards'), addon: <NotifiCounter fields="donate,donate_msgs" />},
(messagesLink ?
{link: messagesLink, icon: 'new/envelope', value: tt('g.messages'), target: '_blank', addon: <NotifiCounter fields="message" />} :
Expand Down Expand Up @@ -199,7 +199,7 @@ function TopRightMenu({account, savings_withdraws, price_per_golos, globalprops,
</div>
</div>
</a>
<div className="TopRightMenu__notificounter"><NotifiCounter fields="total" /></div>
<div className="TopRightMenu__notificounter"><NotifiCounter fields="feed,subscriptions,send,receive,delegate_vs,donate,donate_msgs,message,fill_order,comment_reply,mention,new_sponsor,sponsor_inactive,nft_receive" /></div>
</li>}
</LinkWithDropdown>
{navAdditional}
Expand Down
4 changes: 2 additions & 2 deletions app/components/pages/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export default class UserProfile extends React.Component {
<div className='UserProfile__filler' />
<div>
<a href={walletUrl(`/@${accountname}/transfers`)} target={walletTarget()} className={`${walletClass} UserProfile__menu-item`}>
{tt('g.wallet')} {isMyAccount && <NotifiCounter fields='send,receive,fill_order' />}
{tt('g.wallet')} {isMyAccount && <NotifiCounter fields='send,receive,fill_order,nft_receive' />}
</a>
<LinkWithDropdown
closeOnClickOutside
Expand Down Expand Up @@ -512,7 +512,7 @@ export default class UserProfile extends React.Component {
<span><Link to={`/@${accountname}`}>{tt('user_profile.post_count', {count: account.post_count || 0})}</Link></span>
<span><Link to={`/@${accountname}/followed`}>{tt('user_profile.followed_count', {count: followingCount})}</Link></span>
<span className='sponsors_notify'><Link to={`/@${accountname}/sponsors`}>{tt('user_profile.sponsor_count', {count: account.sponsor_count || 0})}
<NotifiCounter fields='new_sponsor,sponsor_inactive' />
{isMyAccount && <NotifiCounter fields='new_sponsor,sponsor_inactive' />}
</Link></span>
</div>
<p className='UserProfile__info'>
Expand Down

0 comments on commit 3ab69ed

Please sign in to comment.