react-antd-icons
Advanced tools
Comparing version 0.0.1-alpha.3 to 0.0.1-alpha.4
import * as React from 'react'; | ||
export interface IAntdIconProps { | ||
type: string; | ||
prefix?: string; | ||
className?: string; | ||
@@ -5,0 +6,0 @@ onClick?: React.MouseEventHandler<SVGSVGElement>; |
@@ -54,5 +54,5 @@ import { library, prefix } from 'antd-icons'; | ||
AntdIcon.prototype.render = function () { | ||
var _a = this.props, type = _a.type, rest = __rest(_a, ["type"]); | ||
var _a = this.props, type = _a.type, prefix$$1 = _a.prefix, rest = __rest(_a, ["type", "prefix"]); | ||
return (createElement("svg", __assign({ "data-icon": type, width: '1em', height: '1em', fill: 'currentColor' }, rest), | ||
createElement("use", { xlinkHref: "#" + prefix + type }))); | ||
createElement("use", { xlinkHref: "#" + (typeof prefix$$1 === 'string' ? prefix$$1 : prefix) + type }))); | ||
}; | ||
@@ -59,0 +59,0 @@ AntdIcon.prototype.componentDidMount = function () { |
import * as React from 'react'; | ||
export interface IAntdIconProps { | ||
type: string; | ||
prefix?: string; | ||
className?: string; | ||
@@ -5,0 +6,0 @@ onClick?: React.MouseEventHandler<SVGSVGElement>; |
@@ -58,5 +58,5 @@ 'use strict'; | ||
AntdIcon.prototype.render = function () { | ||
var _a = this.props, type = _a.type, rest = __rest(_a, ["type"]); | ||
var _a = this.props, type = _a.type, prefix = _a.prefix, rest = __rest(_a, ["type", "prefix"]); | ||
return (React.createElement("svg", __assign({ "data-icon": type, width: '1em', height: '1em', fill: 'currentColor' }, rest), | ||
React.createElement("use", { xlinkHref: "#" + antdIcons.prefix + type }))); | ||
React.createElement("use", { xlinkHref: "#" + (typeof prefix === 'string' ? prefix : antdIcons.prefix) + type }))); | ||
}; | ||
@@ -63,0 +63,0 @@ AntdIcon.prototype.componentDidMount = function () { |
{ | ||
"name": "react-antd-icons", | ||
"version": "0.0.1-alpha.3", | ||
"version": "0.0.1-alpha.4", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./esm/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19162
252