Skip to content

Commit

Permalink
Merge pull request #5 from mciparelli/fix-classnames
Browse files Browse the repository at this point in the history
fixed classnames require call
  • Loading branch information
wwayne committed May 22, 2015
2 parents bfb61e5 + ed35092 commit f961303
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __tests__/index-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

jest.dontMock('../index');
jest.dontMock('../');

var React = require('react/addons');
// var ReactTooltip = require('../index');
Expand Down
6 changes: 3 additions & 3 deletions dist/react-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({

Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion example/src/react-tooltip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import React from 'react';
import classname from 'classNames';
import classname from 'classnames';

const ReactTooltip = React.createClass({

Expand Down
2 changes: 1 addition & 1 deletion src/js/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import React from 'react';
import classname from 'classNames';
import classname from 'classnames';

const ReactTooltip = React.createClass({

Expand Down

0 comments on commit f961303

Please sign in to comment.