Skip to content

Commit

Permalink
feat(ToastMessage): Update React addon classSet to classnames
Browse files Browse the repository at this point in the history
* Original commit: d5f5884
* Thanks to: @mikechau
* Closes #23
* Add classnames to peerDependencies as well
  • Loading branch information
mikechau authored and tomchentw committed Jul 1, 2015
1 parent 4c5b593 commit 528473e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
"tomchentw-npm-dev": "^2.0.0"
},
"dependencies": {
"classnames": "^2.1.2",
"react": "^0.13.0"
},
"peerDependencies": {
"classnames": "^2.1.2",
"react": "^0.13.0"
},
"jest": {
Expand Down
2 changes: 1 addition & 1 deletion src/ToastMessage/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";
var React = require("react/addons");
var {update} = React.addons;
var cx = require("classnames");

function noop () {}

Expand Down Expand Up @@ -69,7 +70,6 @@ var ToastMessageSpec = {
},

render () {
var cx = React.addons.classSet;
var {props} = this;
var iconClassName = props.iconClassName || props.iconClassNames[props.type];

Expand Down

0 comments on commit 528473e

Please sign in to comment.