Remove unused `isWideViewport` prop (#8662)

This prop is no longer required, now that the new fullscreen redesign
has been implemented. This was unused before the redesign as well,
seemingly by accident.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent 4802ed1df5
commit cc1170f577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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 } = {}) {
}
<div className="transaction-list__completed-transactions">
{
isWideViewport || pendingLength > 0
pendingLength > 0
? (
<div className="transaction-list__header">
{ t('history') }
@ -97,7 +96,3 @@ export default function TransactionList ({ isWideViewport = false } = {}) {
</div>
)
}
TransactionList.propTypes = {
isWideViewport: PropTypes.bool.isRequired,
}

Loading…
Cancel
Save