diff --git a/src/components/TransactionsList/ConfirmationCheck.js b/src/components/TransactionsList/ConfirmationCheck.js index e9bc0e60..ce0c5b45 100644 --- a/src/components/TransactionsList/ConfirmationCheck.js +++ b/src/components/TransactionsList/ConfirmationCheck.js @@ -5,6 +5,8 @@ import styled from 'styled-components' import { rgba } from 'styles/helpers' +import type { T } from 'types/common' + import Box from 'components/base/Box' import Tooltip from 'components/base/Tooltip' import IconCheck from 'icons/Check' @@ -24,13 +26,19 @@ const Container = styled(Box).attrs({ const ConfirmationCheck = ({ confirmations, minConfirmations, + t, }: { confirmations: number, minConfirmations: number, + t: T, }) => { const isConfirmed = confirmations >= minConfirmations return ( - (isConfirmed ? 'Confirmed' : 'Not confirmed')}> + + isConfirmed ? t('transactionsList:confirmed') : t('transactionsList:notConfirmed') + } + > {isConfirmed ? : } diff --git a/src/components/TransactionsList/index.js b/src/components/TransactionsList/index.js index 51d6f727..16106acf 100644 --- a/src/components/TransactionsList/index.js +++ b/src/components/TransactionsList/index.js @@ -175,7 +175,11 @@ const Transaction = ({ /> - + ) diff --git a/static/i18n/en/transactionsList.yml b/static/i18n/en/transactionsList.yml index 07ce6d37..8147e850 100644 --- a/static/i18n/en/transactionsList.yml +++ b/static/i18n/en/transactionsList.yml @@ -5,3 +5,5 @@ amount: Amount from: From to: To showMore: Show more +confirmed: Confirmed +notConfirmed: Not confirmed