@ -1,5 +1,4 @@
import React , { useMemo , useEffect , useRef , useState , useCallback } from 'react'
import React , { useMemo , useEffect , useRef , useState , useCallback } from 'react'
import PropTypes from 'prop-types'
import { useSelector , useDispatch } from 'react-redux'
import { useSelector , useDispatch } from 'react-redux'
import {
import {
nonceSortedCompletedTransactionsSelector ,
nonceSortedCompletedTransactionsSelector ,
@ -15,7 +14,7 @@ import Button from '../../ui/button'
const PAGE _INCREMENT = 10
const PAGE _INCREMENT = 10
export default function TransactionList ( { isWideViewport = false } = { } ) {
export default function TransactionList ( ) {
const [ limit , setLimit ] = useState ( PAGE _INCREMENT )
const [ limit , setLimit ] = useState ( PAGE _INCREMENT )
const t = useI18nContext ( )
const t = useI18nContext ( )
@ -68,7 +67,7 @@ export default function TransactionList ({ isWideViewport = false } = {}) {
}
}
< div className = "transaction-list__completed-transactions" >
< div className = "transaction-list__completed-transactions" >
{
{
isWideViewport || pendingLength > 0
pendingLength > 0
? (
? (
< div className = "transaction-list__header" >
< div className = "transaction-list__header" >
{ t ( 'history' ) }
{ t ( 'history' ) }
@ -97,7 +96,3 @@ export default function TransactionList ({ isWideViewport = false } = {}) {
< / d i v >
< / d i v >
)
)
}
}
TransactionList . propTypes = {
isWideViewport : PropTypes . bool . isRequired ,
}