react-lazy-card
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,3 +5,3 @@ import React, { Component, PropTypes } from 'react' | ||
export default class Caard extends Component { | ||
export default class LazyCard extends Component { | ||
constructor (props) { | ||
@@ -63,3 +63,3 @@ super(props) | ||
Caard.propTypes = { | ||
LazyCard.propTypes = { | ||
className: PropTypes.string, | ||
@@ -77,3 +77,3 @@ | ||
// url of the main image | ||
image: PropTypes.string.isRequired, | ||
image: PropTypes.string, | ||
@@ -94,3 +94,3 @@ // url of pre loaded image | ||
Caard.defaultProps = { | ||
LazyCard.defaultProps = { | ||
title: '', | ||
@@ -97,0 +97,0 @@ attributes: {}, |
@@ -31,9 +31,9 @@ 'use strict'; | ||
var Caard = function (_Component) { | ||
_inherits(Caard, _Component); | ||
var LazyCard = function (_Component) { | ||
_inherits(LazyCard, _Component); | ||
function Caard(props) { | ||
_classCallCheck(this, Caard); | ||
function LazyCard(props) { | ||
_classCallCheck(this, LazyCard); | ||
var _this = _possibleConstructorReturn(this, (Caard.__proto__ || Object.getPrototypeOf(Caard)).call(this, props)); | ||
var _this = _possibleConstructorReturn(this, (LazyCard.__proto__ || Object.getPrototypeOf(LazyCard)).call(this, props)); | ||
@@ -49,3 +49,3 @@ _this.state = { | ||
_createClass(Caard, [{ | ||
_createClass(LazyCard, [{ | ||
key: 'componentDidMount', | ||
@@ -112,9 +112,9 @@ value: function componentDidMount() { | ||
return Caard; | ||
return LazyCard; | ||
}(_react.Component); | ||
exports.default = Caard; | ||
exports.default = LazyCard; | ||
Caard.propTypes = { | ||
LazyCard.propTypes = { | ||
className: _react.PropTypes.string, | ||
@@ -132,3 +132,3 @@ | ||
// url of the main image | ||
image: _react.PropTypes.string.isRequired, | ||
image: _react.PropTypes.string, | ||
@@ -147,3 +147,3 @@ // url of pre loaded image | ||
Caard.defaultProps = { | ||
LazyCard.defaultProps = { | ||
title: '', | ||
@@ -150,0 +150,0 @@ attributes: {}, |
@@ -90,3 +90,3 @@ { | ||
}, | ||
"version": "0.1.1" | ||
"version": "0.1.2" | ||
} |
@@ -22,3 +22,3 @@ #react-lazy-card | ||
```js | ||
import lazy-card from 'react-lazy-card'; | ||
import LazyCard from 'react-lazy-card'; | ||
@@ -25,0 +25,0 @@ <LazyCard image="b.jpg" autoLoad={true} defaultimage="default2.jpg">Text 2</LazyCard> |
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
14260