diff --git a/package.json b/package.json index 632b868bbdd..32be7126407 100644 --- a/package.json +++ b/package.json @@ -134,6 +134,7 @@ "normalizr": "2.1.0", "piping": "0.3.2", "react": "15.1.0", + "react-addons-css-transition-group": "15.1.0", "react-cookie": "0.4.6", "react-helmet": "3.1.0", "react-redux": "4.4.5", diff --git a/src/disco/components/Addon.js b/src/disco/components/Addon.js index de78c980066..656208c1de1 100644 --- a/src/disco/components/Addon.js +++ b/src/disco/components/Addon.js @@ -1,6 +1,7 @@ import classNames from 'classnames'; import { sprintf } from 'jed'; import React, { PropTypes } from 'react'; +import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { connect } from 'react-redux'; import translate from 'core/i18n/translate'; import purify from 'core/purify'; @@ -87,14 +88,14 @@ export class Addon extends React.Component { } getError() { - return this.props.status === ERROR ? (
+ return this.props.status === ERROR ? (

{this.errorMessage()}

Close
) : null; } getRestart() { - return this.props.needsRestart ? (
+ return this.props.needsRestart ? (

{this.restartMessage()}

) : null; } @@ -192,8 +193,14 @@ export class Addon extends React.Component { {this.getThemeImage()} {this.getLogo()}
- {this.getError()} - {this.getRestart()} + + {this.getError()} + {this.getRestart()} +