Fix eslint errors

This commit is contained in:
Lyubo Marinov 2018-02-08 22:17:36 -06:00
parent 8f1ff9cfc3
commit 75023b4224
4 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
/**
* React component for displaying a count. For example a number of poops.
*
@ -27,11 +26,11 @@ class Count extends Component {
* @returns {ReactElement}
*/
render() {
const {count} = this.props;
const { count } = this.props;
return (
<div>
{count}
{ count }
</div>
);
}

View File

@ -146,11 +146,11 @@ class SpeakerStats extends Component<*, *> {
<SpeakerStatsItem
displayName = { displayName }
dominantSpeakerTime = { dominantSpeakerTime }
poopCount = { poopCount }
heartCount = { heartCount }
hasLeft = { hasLeft }
heartCount = { heartCount }
isDominantSpeaker = { isDominantSpeaker }
key = { userId } />
key = { userId }
poopCount = { poopCount } />
);
}

View File

@ -26,18 +26,19 @@ class SpeakerStatsItem extends Component {
*/
dominantSpeakerTime: PropTypes.number,
poopCount: PropTypes.number,
heartCount: PropTypes.number,
/**
* True if the participant is no longer in the meeting.
*/
hasLeft: PropTypes.bool,
heartCount: PropTypes.number,
/**
* True if the participant is currently the dominant speaker.
*/
isDominantSpeaker: PropTypes.bool
isDominantSpeaker: PropTypes.bool,
poopCount: PropTypes.number
};
/**

View File

@ -40,10 +40,10 @@ class SpeakerStatsLabels extends Component {
{ t('speakerStats.speakerTime') }
</div>
<div className = 'speaker-stats-item__poop'>
{ "💩"}
{ '💩' }
</div>
<div className = 'speaker-stats-item__heart'>
{ "💖"}
{ '💖' }
</div>
</div>
);