From c25058a9f575efb9a6a59ea0e2c162dd91bd791c 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 | 1 - src/DateRangePicker.jsx | 2 +- src/Legend.jsx | 2 +- src/PaginationArrow.jsx | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a57d6e2f..819c9f41 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "immutable": "^3.7.2", "moment": "^2.14.1", "moment-range": "^2.0.3", - "react-addons-pure-render-mixin": "^0.14.0 || 15.x.x" }, "devDependencies": { "babel-cli": "^6.14.0", diff --git a/src/DateRangePicker.jsx b/src/DateRangePicker.jsx index 2df54ebe..a6cc6d70 100644 --- a/src/DateRangePicker.jsx +++ b/src/DateRangePicker.jsx @@ -17,7 +17,7 @@ import isMomentRange from './utils/isMomentRange'; import hasUpdatedValue from './utils/hasUpdatedValue'; import { getYearMonth, getYearMonthProps } from './utils/getYearMonth'; -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({