diff --git a/ui/app/components/app/transaction-list/transaction-list.component.js b/ui/app/components/app/transaction-list/transaction-list.component.js index e1215c876..5eea4645e 100644 --- a/ui/app/components/app/transaction-list/transaction-list.component.js +++ b/ui/app/components/app/transaction-list/transaction-list.component.js @@ -1,5 +1,4 @@ import React, { useMemo, useEffect, useRef, useState, useCallback } from 'react' -import PropTypes from 'prop-types' import { useSelector, useDispatch } from 'react-redux' import { nonceSortedCompletedTransactionsSelector, @@ -15,7 +14,7 @@ import Button from '../../ui/button' const PAGE_INCREMENT = 10 -export default function TransactionList ({ isWideViewport = false } = {}) { +export default function TransactionList () { const [limit, setLimit] = useState(PAGE_INCREMENT) const t = useI18nContext() @@ -68,7 +67,7 @@ export default function TransactionList ({ isWideViewport = false } = {}) { }
{ - isWideViewport || pendingLength > 0 + pendingLength > 0 ? (
{ t('history') } @@ -97,7 +96,3 @@ export default function TransactionList ({ isWideViewport = false } = {}) {
) } - -TransactionList.propTypes = { - isWideViewport: PropTypes.bool.isRequired, -}