mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Fix Badge className
not being correctly set
Fixes group icons on Admin permissions page
This commit is contained in:
parent
1785e6b8cb
commit
fbe6beef28
|
@ -25,8 +25,8 @@ export default class Badge extends Component {
|
||||||
const iconChild = iconName ? icon(iconName, { className: 'Badge-icon' }) : m.trust(' ');
|
const iconChild = iconName ? icon(iconName, { className: 'Badge-icon' }) : m.trust(' ');
|
||||||
|
|
||||||
const badgeAttrs = {
|
const badgeAttrs = {
|
||||||
className,
|
|
||||||
...attrs,
|
...attrs,
|
||||||
|
className,
|
||||||
};
|
};
|
||||||
|
|
||||||
const badgeNode = <div {...badgeAttrs}>{iconChild}</div>;
|
const badgeNode = <div {...badgeAttrs}>{iconChild}</div>;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user