-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: notifications toggle #466
Conversation
const i18N = { | ||
en: { description: 'You just sold ', title: 'Item Sold' }, | ||
es: { description: 'Vendiste ', title: 'Item vendido' }, | ||
zh: { description: '你剛剛賣了 ', title: '已售商品' } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can put this into a global translation file
const i18N = { | |
en: { description: 'You just sold ', title: 'Item Sold' }, | |
es: { description: 'Vendiste ', title: 'Item vendido' }, | |
zh: { description: '你剛剛賣了 ', title: '已售商品' } | |
} | |
const i18N = { | |
ItemSoldNotification: { | |
en: { description: 'You just sold ', title: 'Item Sold' }, | |
es: { description: 'Vendiste ', title: 'Item vendido' }, | |
zh: { description: '你剛剛賣了 ', title: '已售商品' } | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this particular case, I prefer to keep each i18N in each component file. I find it more comfortable and cleaner
</div> | ||
)} | ||
{!userNotifications.length && ( | ||
<div className="dcl notifications-feed__emptyview"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you use the before suggestion change from emptyview
to empty-view
then this should be
<div className="dcl notifications-feed__emptyview"> | |
<div className="dcl notifications-feed__empty-view"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept it all as notifications-feed__emptyview-*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏽
🎉 This PR is included in version 4.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.