From 1824dbaba0066118b0ec3b1c68f67007361a5dc4 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 4 Aug 2016 20:13:11 -0600 Subject: [PATCH] Remove dependency on React internals --- package.json | 5 ++--- src/DateRangePicker.jsx | 2 +- src/Legend.jsx | 2 +- src/PaginationArrow.jsx | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9c789de0..628be55c 100644 --- a/package.json +++ b/package.json @@ -50,8 +50,7 @@ "classnames": "^2.1.1", "immutable": "^3.7.2", "moment": "^2.10.6", - "moment-range": "^2.0.3", - "react-addons-pure-render-mixin": "^0.14.0 || 15.x.x" + "moment-range": "^2.0.3" }, "devDependencies": { "babel": "^5.2.16", @@ -88,8 +87,8 @@ "karma-webpack": "^1.7.0", "object.assign": "^1.1.1", "phantomjs": "^1.9.18", - "run-sequence": "~1.1.4", "react-addons-test-utils": "^0.14.0 || 15.x.x", + "run-sequence": "~1.1.4", "timekeeper": "0.0.5", "transform-loader": "^0.2.1", "underscore": "^1.8.3", diff --git a/src/DateRangePicker.jsx b/src/DateRangePicker.jsx index 8fa6a602..d294bb80 100644 --- a/src/DateRangePicker.jsx +++ b/src/DateRangePicker.jsx @@ -15,7 +15,7 @@ import PaginationArrow from './PaginationArrow'; import isMomentRange from './utils/isMomentRange'; -import PureRenderMixin from 'react-addons-pure-render-mixin'; +import PureRenderMixin from './utils/PureRenderMixin'; const absoluteMinimum = moment(new Date(-8640000000000000 / 2)).startOf('day'); const absoluteMaximum = moment(new Date(8640000000000000 / 2)).startOf('day'); diff --git a/src/Legend.jsx b/src/Legend.jsx index 3bdcc7ec..f7732d45 100644 --- a/src/Legend.jsx +++ b/src/Legend.jsx @@ -2,7 +2,7 @@ import React from 'react'; import BemMixin from './utils/BemMixin'; -import PureRenderMixin from 'react-addons-pure-render-mixin'; +import PureRenderMixin from './utils/PureRenderMixin'; const Legend = React.createClass({ diff --git a/src/PaginationArrow.jsx b/src/PaginationArrow.jsx index bfc684de..c3f138df 100644 --- a/src/PaginationArrow.jsx +++ b/src/PaginationArrow.jsx @@ -2,7 +2,7 @@ import React from 'react'; import BemMixin from './utils/BemMixin'; -import PureRenderMixin from 'react-addons-pure-render-mixin'; +import PureRenderMixin from './utils/PureRenderMixin'; const PaginationArrow = React.createClass({