lib
This commit is contained in:
parent
0ec69abba4
commit
3449af26b3
|
@ -7718,13 +7718,13 @@
|
||||||
|
|
||||||
InternalComponents.LibraryComponents.SvgIcon = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.SvgIcon") || reactInitialized && class BDFDB_Icon extends LibraryModules.React.Component {
|
InternalComponents.LibraryComponents.SvgIcon = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.SvgIcon") || reactInitialized && class BDFDB_Icon extends LibraryModules.React.Component {
|
||||||
render() {
|
render() {
|
||||||
if (this.props.name && InternalComponents.LibraryComponents.SvgIcon.Names[this.props.name]) {
|
if (BDFDB.ObjectUtils.is(this.props.name)) {
|
||||||
this.props.iconSVG = InternalComponents.LibraryComponents.SvgIcon.Names[this.props.name].icon;
|
this.props.iconSVG = this.props.name.icon;
|
||||||
let props = Object.assign({
|
let props = Object.assign({
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
color: "currentColor"
|
color: "currentColor"
|
||||||
}, InternalComponents.LibraryComponents.SvgIcon.Names[this.props.name].defaultProps, this.props);
|
}, this.props.name.defaultProps, this.props);
|
||||||
for (let key in props) this.props.iconSVG = this.props.iconSVG.replace(new RegExp(`%%${key}`, "g"), props[key]);
|
for (let key in props) this.props.iconSVG = this.props.iconSVG.replace(new RegExp(`%%${key}`, "g"), props[key]);
|
||||||
}
|
}
|
||||||
if (this.props.iconSVG) {
|
if (this.props.iconSVG) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue