From 930c4ca515b3d9fba17bea3051705d555093c189 Mon Sep 17 00:00:00 2001 From: Peter Magenheimer Date: Fri, 10 Apr 2015 18:57:47 +0200 Subject: [PATCH] Use classnames instead of react/lib/cx. classSet / cx will be removed in a future version of React. See also: https://github.com/facebook/react/commit/b6980ab9809fc3ddc68c20129618f0414d49b2a4 --- lib/components/ModalPortal.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/ModalPortal.js b/lib/components/ModalPortal.js index ad325958..e6662ab9 100644 --- a/lib/components/ModalPortal.js +++ b/lib/components/ModalPortal.js @@ -2,7 +2,7 @@ var React = require('react'); var div = React.DOM.div; var focusManager = require('../helpers/focusManager'); var scopeTab = require('../helpers/scopeTab'); -var cx = require('react/lib/cx'); +var cx = require('classnames'); // so that our CSS is statically analyzable var CLASS_NAMES = { diff --git a/package.json b/package.json index 1a035df7..65d37710 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "webpack-dev-server": "1.6.5" }, "peerDependencies": { - "react": ">=0.12.0" + "react": ">=0.12.0", + "classnames": "^1.2.0" }, - "dependencies": {}, "tags": [ "react", "modal",