Skip to content

Commit

Permalink
use purecomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
fuermosi777 committed Apr 25, 2018
1 parent 9f2b3a0 commit 47b5b7d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ var styles = {
}
};

var FreeScrollbar = function (_React$Component) {
_inherits(FreeScrollbar, _React$Component);
var FreeScrollbar = function (_React$PureComponent) {
_inherits(FreeScrollbar, _React$PureComponent);

function FreeScrollbar(props) {
_classCallCheck(this, FreeScrollbar);
Expand Down Expand Up @@ -363,7 +363,7 @@ var FreeScrollbar = function (_React$Component) {
}]);

return FreeScrollbar;
}(_react2.default.Component);
}(_react2.default.PureComponent);

FreeScrollbar.displayName = 'FreeScrollbar';
FreeScrollbar.propTypes = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-free-scrollbar",
"version": "0.3.1",
"version": "0.3.2",
"description": "A react module for creating customizable scroll area",
"main": "dist/index.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions site/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
/******/ }
/******/
/******/ var hotApplyOnUpdate = true;
/******/ var hotCurrentHash = "f0dc5ac31735e884437b"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentHash = "59c6ac0caab0095cef5b"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
/******/
Expand Down Expand Up @@ -20336,8 +20336,8 @@
}
};

var FreeScrollbar = function (_React$Component) {
_inherits(FreeScrollbar, _React$Component);
var FreeScrollbar = function (_React$PureComponent) {
_inherits(FreeScrollbar, _React$PureComponent);

function FreeScrollbar(props) {
_classCallCheck(this, FreeScrollbar);
Expand Down Expand Up @@ -20603,7 +20603,7 @@
}]);

return FreeScrollbar;
}(_react2.default.Component);
}(_react2.default.PureComponent);

FreeScrollbar.displayName = 'FreeScrollbar';
FreeScrollbar.propTypes = {
Expand Down
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const styles = {
}
};

export default class FreeScrollbar extends React.Component {
export default class FreeScrollbar extends React.PureComponent {
static displayName = 'FreeScrollbar';

static propTypes = {
Expand Down

0 comments on commit 47b5b7d

Please sign in to comment.