Skip to content

Commit

Permalink
feat(ToastContainer): ES2015
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Oct 29, 2015
1 parent 69dbd7e commit dce1279
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/ToastContainer.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
"use strict";
var React = require("react");
var update = require('react-addons-update');
import {
default as React,
PropTypes,
} from "react";

var ToastMessage = React.createFactory(require("./ToastMessage"));
import {
default as update,
} from "react-addons-update";

import {
default as ToastMessage,
} from "./ToastMessage";

function noop () {}

module.exports = React.createClass({
export default React.createClass({
displayName: "ToastContainer",

error (message, title, optionsOverride) {
Expand Down Expand Up @@ -42,7 +49,7 @@ module.exports = React.createClass({
warning: "warning",
},
id: "toast-container",
toastMessageFactory: ToastMessage,
toastMessageFactory: React.createFactory(ToastMessage),
preventDuplicates: false,
newestOnTop: true,
onClick: noop,
Expand Down

0 comments on commit dce1279

Please sign in to comment.