fix(SyncActivity): Add keys to ellipsis components

Summary: Just a quick fix to remove the warning in the console

Test Plan: manual

Reviewers: mark

Reviewed By: mark

Differential Revision: https://phab.nylas.com/D3823
This commit is contained in:
Halla Moore 2017-02-01 14:05:31 -08:00
parent 2112118332
commit 288f6bfcdb
2 changed files with 6 additions and 2 deletions

View file

@ -83,7 +83,9 @@ export default class SyncActivity extends React.Component {
'blink': this.state.blink,
});
const ellipses = [1, 2, 3].map((i) => <span className={`ellipsis${i}`}>.</span>);
const ellipses = [1, 2, 3].map((i) => (
<span key={`ellipsis${i}`} className={`ellipsis${i}`}>.</span>)
);
return (
<div

View file

@ -25,7 +25,9 @@ export default class SyncbackActivity extends React.Component {
counts[label] += +task.numberOfImpactedItems()
});
const ellipses = [1, 2, 3].map((i) => <span className={`ellipsis${i}`}>.</span>);
const ellipses = [1, 2, 3].map((i) => (
<span key={`ellipsis${i}`} className={`ellipsis${i}`}>.</span>)
);
const items = _.pairs(counts).map(([label, count]) => {
return (