Skip to content

Commit

Permalink
fix: Intl correctly rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mhomolak committed Jan 19, 2017
1 parent 0848428 commit 90c2720
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/js/AlertList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Component-specific.scss with the naming convention
// transitionName-lifecyclehook
import React, { Component, PropTypes } from 'react';
import Alert from './Alert';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { intlShape, injectIntl } from 'react-intl';
import { messages } from '../../translations/defaultMessages';
import Alert from './Alert';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { intlShape, injectIntl } from 'react-intl';
import { messages } from '../../translations/defaultMessages';

class AlertList extends Component {

Expand Down Expand Up @@ -55,10 +55,11 @@ function _handleClose (closeIndex) {

function _renderAlert (alertList) {
const { intl } = this.props;
console.log(alertList, 'asgd');

return alertList.map((alert, index) =>

(this.state.alertList[(this.state.alertList.length) - 1].alertType) === 'success' ?
(this.state.alertList[index].alertType) === 'success' ?

<Alert
key = {index}
Expand Down

0 comments on commit 90c2720

Please sign in to comment.