Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tingle-icon

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tingle-icon - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "tingle-icon",
"version": "0.0.1",
"version": "0.0.2",
"description": "svg icon",

@@ -5,0 +5,0 @@ "repository": "https://github.com/tinglejs/tingle-icon.git",

@@ -8,2 +8,3 @@ /**

*/
var classnames = require('classnames');
class Icon extends React.Component {

@@ -16,6 +17,8 @@

render() {
return (
<svg className={this.props.className}
dangerouslySetInnerHTML={{__html: '<use xlink:href="#' + this.props.id + '"/>'}}/>
);
var t = this;
return <svg className={classnames('tIcon', {
[t.props.className]: !!t.props.className
})} dangerouslySetInnerHTML={{
__html: '<use xlink:href="#' + t.props.id + '"/>'
}}/>
}

@@ -25,3 +28,2 @@ }

Icon.defaultProps = {
className: 'tIcon'
}

@@ -31,6 +33,6 @@

Icon.propTypes = {
className: React.PropTypes.string,
id : React.PropTypes.string.isRequired
className: React.PropTypes.string,
id: React.PropTypes.string.isRequired
}
module.exports = Icon;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc