diff --git a/__tests__/index-test.js b/__tests__/index-test.js index 08d03fd8a..fee178a7a 100644 --- a/__tests__/index-test.js +++ b/__tests__/index-test.js @@ -1,6 +1,6 @@ 'use strict'; -jest.dontMock('../index'); +jest.dontMock('../'); var React = require('react/addons'); // var ReactTooltip = require('../index'); diff --git a/dist/react-tooltip.js b/dist/react-tooltip.js index 48360e9b6..188fcf089 100644 --- a/dist/react-tooltip.js +++ b/dist/react-tooltip.js @@ -10,9 +10,9 @@ var _react = require('react'); var _react2 = _interopRequireDefault(_react); -var _classNames = require('classNames'); +var _classnames = require('classnames'); -var _classNames2 = _interopRequireDefault(_classNames); +var _classnames2 = _interopRequireDefault(_classnames); var ReactTooltip = _react2['default'].createClass({ @@ -133,7 +133,7 @@ var ReactTooltip = _react2['default'].createClass({ top: this.state.y + offset.y + 'px' }; - var tooltipClass = (0, _classNames2['default'])('reactTooltip', { 'show': this.state.show }, { 'place-top': this.state.place === 'top' }, { 'place-bottom': this.state.place === 'bottom' }, { 'place-left': this.state.place === 'left' }, { 'place-right': this.state.place === 'right' }, { 'type-dark': this.state.type === 'dark' }, { 'type-success': this.state.type === 'success' }, { 'type-warning': this.state.type === 'warning' }, { 'type-error': this.state.type === 'error' }, { 'type-info': this.state.type === 'info' }, { 'type-light': this.state.type === 'light' }); + var tooltipClass = (0, _classnames2['default'])('reactTooltip', { 'show': this.state.show }, { 'place-top': this.state.place === 'top' }, { 'place-bottom': this.state.place === 'bottom' }, { 'place-left': this.state.place === 'left' }, { 'place-right': this.state.place === 'right' }, { 'type-dark': this.state.type === 'dark' }, { 'type-success': this.state.type === 'success' }, { 'type-warning': this.state.type === 'warning' }, { 'type-error': this.state.type === 'error' }, { 'type-info': this.state.type === 'info' }, { 'type-light': this.state.type === 'light' }); return _react2['default'].createElement( 'span', diff --git a/example/src/react-tooltip.js b/example/src/react-tooltip.js index ac43a7022..b7a6deb86 100644 --- a/example/src/react-tooltip.js +++ b/example/src/react-tooltip.js @@ -1,7 +1,7 @@ 'use strict'; import React from 'react'; -import classname from 'classNames'; +import classname from 'classnames'; const ReactTooltip = React.createClass({ diff --git a/src/js/index.jsx b/src/js/index.jsx index ac43a7022..b7a6deb86 100644 --- a/src/js/index.jsx +++ b/src/js/index.jsx @@ -1,7 +1,7 @@ 'use strict'; import React from 'react'; -import classname from 'classNames'; +import classname from 'classnames'; const ReactTooltip = React.createClass({