Skip to content

Commit

Permalink
Use hyphenate-style-name module instead of React internal
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Aug 3, 2015
1 parent 4050ab3 commit 7046106
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"component"
],
"dependencies": {
"hyphenate-style-name": "^1.0.0",
"lodash.omit": "^3.0.0",
"matchmedia": "^0.1.1",
"object-assign": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var React = require('react');
var omit = require('lodash.omit');
var matchMedia = require('matchmedia');
var hyphenate = require('react/lib/hyphenateStyleName');
var hyphenate = require('hyphenate-style-name');
var mediaQuery = require('./mediaQuery');
var toQuery = require('./toQuery');

Expand Down
2 changes: 1 addition & 1 deletion src/mediaQuery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var PropTypes = require('react/lib/ReactPropTypes');
var PropTypes = require('react').PropTypes;
var assign = require('object-assign');

var stringOrNumber = PropTypes.oneOfType([
Expand Down
4 changes: 2 additions & 2 deletions src/toQuery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var hyphenate = require('react/lib/hyphenateStyleName');
var hyphenate = require('hyphenate-style-name');
var mq = require('./mediaQuery');

function negate(cond) {
Expand Down Expand Up @@ -36,4 +36,4 @@ module.exports = function(obj){
}
});
return join(rules);
};
};

0 comments on commit 7046106

Please sign in to comment.