Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions lib/shuffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ var _reactDom = require('react-dom');

var _reactDom2 = _interopRequireDefault(_reactDom);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _objectAssign = require('object-assign');

var _objectAssign2 = _interopRequireDefault(_objectAssign);
Expand Down Expand Up @@ -146,10 +150,10 @@ var Shuffle = _react2.default.createClass({
displayName: 'Shuffle',

propTypes: {
duration: _react2.default.PropTypes.number,
scale: _react2.default.PropTypes.bool,
fade: _react2.default.PropTypes.bool,
initial: _react2.default.PropTypes.bool
duration: _propTypes2.default.number,
scale: _propTypes2.default.bool,
fade: _propTypes2.default.bool,
initial: _propTypes2.default.bool
},

getDefaultProps: function getDefaultProps() {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": {
"babel-plugin-transform-object-rest-spread": "^6.16.0",
"object-assign": "^4.0.1",
"prop-types": "^15.6.1",
"react-addons-transition-group": "^15.0.0 || ^0.14.0",
"react-tween-state": "^0.1.5"
},
Expand Down
9 changes: 5 additions & 4 deletions src/shuffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import React from 'react';
import ReactDom from 'react-dom';
import PropTypes from 'prop-types';
import assign from 'object-assign';
import tweenState from 'react-tween-state';
import ReactTransitionGroup from 'react-addons-transition-group';
Expand Down Expand Up @@ -121,10 +122,10 @@ const Shuffle = React.createClass({
displayName: 'Shuffle',

propTypes: {
duration: React.PropTypes.number,
scale: React.PropTypes.bool,
fade: React.PropTypes.bool,
initial: React.PropTypes.bool
duration: PropTypes.number,
scale: PropTypes.bool,
fade: PropTypes.bool,
initial: PropTypes.bool
},

getDefaultProps() {
Expand Down