Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate proptypes #61

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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: 7 additions & 5 deletions dist/Section.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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

var _react = require('react');

var React = _interopRequireWildcard(_react);
Expand Down Expand Up @@ -102,14 +104,14 @@ var Section = function (_React$Component) {
}(React.Component);

Section.propTypes = {
color: React.PropTypes.string
color: PropTypes.string
};

Section.contextTypes = {
verticalAlign: React.PropTypes.bool,
sectionClassName: React.PropTypes.string,
sectionPaddingTop: React.PropTypes.string,
sectionPaddingBottom: React.PropTypes.string
verticalAlign: PropTypes.bool,
sectionClassName: PropTypes.string,
sectionPaddingTop: PropTypes.string,
sectionPaddingBottom: PropTypes.string
};

exports.default = Section;
40 changes: 21 additions & 19 deletions dist/SectionsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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

var _react = require('react');

var React = _interopRequireWildcard(_react);
Expand Down Expand Up @@ -429,26 +431,26 @@ SectionsContainer.defaultProps = {
};

SectionsContainer.propTypes = {
scrollCallback: React.PropTypes.func,
delay: React.PropTypes.number,
verticalAlign: React.PropTypes.bool,
scrollBar: React.PropTypes.bool,
navigation: React.PropTypes.bool,
className: React.PropTypes.string,
sectionClassName: React.PropTypes.string,
navigationClass: React.PropTypes.string,
navigationAnchorClass: React.PropTypes.string,
activeClass: React.PropTypes.string,
sectionPaddingTop: React.PropTypes.string,
sectionPaddingBottom: React.PropTypes.string,
arrowNavigation: React.PropTypes.bool,
activeSection: React.PropTypes.number,
touchNavigation: React.PropTypes.bool
scrollCallback: PropTypes.func,
delay: PropTypes.number,
verticalAlign: PropTypes.bool,
scrollBar: PropTypes.bool,
navigation: PropTypes.bool,
className: PropTypes.string,
sectionClassName: PropTypes.string,
navigationClass: PropTypes.string,
navigationAnchorClass: PropTypes.string,
activeClass: PropTypes.string,
sectionPaddingTop: PropTypes.string,
sectionPaddingBottom: PropTypes.string,
arrowNavigation: PropTypes.bool,
activeSection: PropTypes.number,
touchNavigation: PropTypes.bool
};

SectionsContainer.childContextTypes = {
verticalAlign: React.PropTypes.bool,
sectionClassName: React.PropTypes.string,
sectionPaddingTop: React.PropTypes.string,
sectionPaddingBottom: React.PropTypes.string
verticalAlign: PropTypes.bool,
sectionClassName: PropTypes.string,
sectionPaddingTop: PropTypes.string,
sectionPaddingBottom: PropTypes.string
};