feature: add handleClose prop in TransactionDetails

This commit is contained in:
George Lima 2018-12-19 14:21:42 -03:00
parent 4f2d05d37e
commit 7a394a48bb
1 changed files with 3 additions and 1 deletions

View File

@ -71,6 +71,7 @@ type Props = {
transactionId: string,
from: string,
to: string,
handleClose: () => void,
};
export const TransactionDetails = ({
@ -81,12 +82,13 @@ export const TransactionDetails = ({
transactionId,
from,
to,
handleClose,
}: Props) => {
const isReceived = type === 'receive';
return (
<Wrapper>
<CloseIconWrapper>
<CloseIconImg src={CloseIcon} onClick={() => alert('Close')} />
<CloseIconImg src={CloseIcon} onClick={handleClose} />
</CloseIconWrapper>
<TitleWrapper>
<TextComponent value='Transactions Details' align='center' />