hotfix: add keys in map
This commit is contained in:
parent
571b11af4e
commit
5d0060194b
|
@ -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';
|
||||||
|
@ -47,7 +47,7 @@ export const TransactionDailyComponent = ({
|
||||||
{transactions.map(({
|
{transactions.map(({
|
||||||
date, type, address, amount,
|
date, type, address, amount,
|
||||||
}, idx) => (
|
}, idx) => (
|
||||||
<div>
|
<Fragment key={address + type + date}>
|
||||||
<TransactionItemComponent
|
<TransactionItemComponent
|
||||||
type={type}
|
type={type}
|
||||||
date={date}
|
date={date}
|
||||||
|
@ -58,7 +58,7 @@ export const TransactionDailyComponent = ({
|
||||||
{idx < transactions.length - 1 && (
|
{idx < transactions.length - 1 && (
|
||||||
<Divider color={theme.colors.inactiveItem} />
|
<Divider color={theme.colors.inactiveItem} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
</TransactionsWrapper>
|
</TransactionsWrapper>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
|
|
Loading…
Reference in New Issue