mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
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.
This commit is contained in:
parent
4802ed1df5
commit
cc1170f577
@ -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…
Reference in New Issue
Block a user