mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 02:58:20 +08:00
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:
parent
2112118332
commit
288f6bfcdb
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue