stuff
This commit is contained in:
parent
8b8463013e
commit
fcfda03c63
|
@ -4697,7 +4697,7 @@ module.exports = (_ => {
|
||||||
handleMouseLeave(e) {if (typeof this.props.onMouseLeave == "function") this.props.onMouseLeave(e, this);}
|
handleMouseLeave(e) {if (typeof this.props.onMouseLeave == "function") this.props.onMouseLeave(e, this);}
|
||||||
render() {
|
render() {
|
||||||
return BDFDB.ReactUtils.createElement("div", {
|
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({
|
style: Object.assign({
|
||||||
backgroundColor: !this.props.disableColor && (this.props.color || BDFDB.DiscordConstants.Colors.STATUS_RED),
|
backgroundColor: !this.props.disableColor && (this.props.color || BDFDB.DiscordConstants.Colors.STATUS_RED),
|
||||||
width: InternalComponents.LibraryComponents.Badges.getBadgeWidthForValue(this.props.count),
|
width: InternalComponents.LibraryComponents.Badges.getBadgeWidthForValue(this.props.count),
|
||||||
|
|
|
@ -1483,6 +1483,8 @@
|
||||||
"badgeicon": ["Badge", "icon"],
|
"badgeicon": ["Badge", "icon"],
|
||||||
"badgeiconbadge": ["Badge", "iconBadge"],
|
"badgeiconbadge": ["Badge", "iconBadge"],
|
||||||
"badgenumberbadge": ["Badge", "numberBadge"],
|
"badgenumberbadge": ["Badge", "numberBadge"],
|
||||||
|
"badgeshaperound": ["Badge", "baseShapeRound"],
|
||||||
|
"badgeshaperoundleft": ["Badge", "baseShapeRoundLeft"],
|
||||||
"badgetextbadge": ["Badge", "textBadge"],
|
"badgetextbadge": ["Badge", "textBadge"],
|
||||||
"badgewrapper": ["NotFound", "badgeWrapper"],
|
"badgewrapper": ["NotFound", "badgeWrapper"],
|
||||||
"bdfdbbadge": ["BDFDB", "badge"],
|
"bdfdbbadge": ["BDFDB", "badge"],
|
||||||
|
|
Loading…
Reference in New Issue