This commit is contained in:
Mirco Wittrien 2021-03-17 12:42:25 +01:00
parent 8b8463013e
commit fcfda03c63
2 changed files with 3 additions and 1 deletions

View File

@ -4697,7 +4697,7 @@ module.exports = (_ => {
handleMouseLeave(e) {if (typeof this.props.onMouseLeave == "function") this.props.onMouseLeave(e, this);}
render() {
return BDFDB.ReactUtils.createElement("div", {
className: BDFDB.DOMUtils.formatClassName(this.props.className, BDFDB.disCN.badgenumberbadge),
className: BDFDB.DOMUtils.formatClassName(this.props.className, BDFDB.disCN.badgenumberbadge, this.props.left ? BDFDB.disCN.badgeshaperoundleft : BDFDB.disCN.badgeshaperound),
style: Object.assign({
backgroundColor: !this.props.disableColor && (this.props.color || BDFDB.DiscordConstants.Colors.STATUS_RED),
width: InternalComponents.LibraryComponents.Badges.getBadgeWidthForValue(this.props.count),

View File

@ -1483,6 +1483,8 @@
"badgeicon": ["Badge", "icon"],
"badgeiconbadge": ["Badge", "iconBadge"],
"badgenumberbadge": ["Badge", "numberBadge"],
"badgeshaperound": ["Badge", "baseShapeRound"],
"badgeshaperoundleft": ["Badge", "baseShapeRoundLeft"],
"badgetextbadge": ["Badge", "textBadge"],
"badgewrapper": ["NotFound", "badgeWrapper"],
"bdfdbbadge": ["BDFDB", "badge"],