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

react-lazy-card

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

react-lazy-card - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

components/LazyCard.js

@@ -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>

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