hotfix: use Fragment in TransactionDaily

This commit is contained in:
George Lima 2018-12-19 10:48:26 -03:00
parent 2605ca3e45
commit 9c198d00f1
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// @flow // @flow
import React from 'react'; import React, { Fragment } from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import { TransactionItemComponent, type Transaction } from './transaction-item'; import { TransactionItemComponent, type Transaction } from './transaction-item';
import { TextComponent } from './text'; import { TextComponent } from './text';
@ -49,7 +49,7 @@ export const TransactionDailyComponent = ({
{transactions.map(({ {transactions.map(({
date, type, address, amount, date, type, address, amount,
}, idx) => ( }, idx) => (
<div> <Fragment key={`${address}-${type}-${amount}-${date}`}>
<TransactionItemComponent <TransactionItemComponent
type={type} type={type}
date={date} date={date}
@ -58,7 +58,7 @@ export const TransactionDailyComponent = ({
zecPrice={zecPrice} zecPrice={zecPrice}
/> />
{idx < transactions.length - 1 && <Divider />} {idx < transactions.length - 1 && <Divider />}
</div> </Fragment>
))} ))}
</TransactionsWrapper> </TransactionsWrapper>
</Wrapper> </Wrapper>