diff --git a/src/components/Filters/TransactionsFilters/StatusColumnFilters.tsx b/src/components/Filters/TransactionsFilters/StatusColumnFilters.tsx index e6d64d1d..1e83f079 100644 --- a/src/components/Filters/TransactionsFilters/StatusColumnFilters.tsx +++ b/src/components/Filters/TransactionsFilters/StatusColumnFilters.tsx @@ -15,7 +15,7 @@ export const StatusColumnFilters = ({ inactiveFilters?: TransactionFiltersEnum[]; }) => { const [searchParams] = useSearchParams(); - const { status, hashes, miniBlockHash, relayer, isRelayed } = + const { status, hashes, miniBlockHash, isRelayed } = Object.fromEntries(searchParams); const existingHashesValues: SelectFilterType['options'] = useMemo(() => { @@ -43,7 +43,6 @@ export const StatusColumnFilters = ({ const allInactive = [ TransactionFiltersEnum.status, TransactionFiltersEnum.miniBlockHash, - TransactionFiltersEnum.relayer, TransactionFiltersEnum.isRelayed, TransactionFiltersEnum.hashes ].every((filter) => inactiveFilters.includes(filter)); @@ -51,7 +50,6 @@ export const StatusColumnFilters = ({ const isActive = status !== undefined || miniBlockHash !== undefined || - relayer !== undefined || isRelayed !== undefined || hashes !== undefined; @@ -95,18 +93,6 @@ export const StatusColumnFilters = ({ )} - {!inactiveFilters.includes(TransactionFiltersEnum.relayer) && ( -
-
Relayer
- -
- )} - {!inactiveFilters.includes(TransactionFiltersEnum.hashes) && (
Txn Hash
diff --git a/src/hooks/adapter/helpers.ts b/src/hooks/adapter/helpers.ts index fa0f20b2..69fc13b8 100644 --- a/src/hooks/adapter/helpers.ts +++ b/src/hooks/adapter/helpers.ts @@ -44,7 +44,6 @@ export function getTransactionsParams({ search, token, hashes, - relayer, isRelayed = false, // include data @@ -85,7 +84,6 @@ export function getTransactionsParams({ ...(search ? { search } : {}), ...(token ? { token } : {}), ...(hashes ? { hashes } : {}), - ...(relayer ? { relayer } : {}), ...(isRelayed ? { isRelayed } : {}) }; diff --git a/src/hooks/urlFilters/useGetTransactionFilters.ts b/src/hooks/urlFilters/useGetTransactionFilters.ts index 5688c8d5..39cf3d88 100644 --- a/src/hooks/urlFilters/useGetTransactionFilters.ts +++ b/src/hooks/urlFilters/useGetTransactionFilters.ts @@ -36,7 +36,6 @@ export const useGetTransactionFilters = () => { method: getParam(TransactionFiltersEnum.method), hashes: getParam(TransactionFiltersEnum.hashes), token: getParam(TransactionFiltersEnum.token), - relayer: getParam(TransactionFiltersEnum.relayer), isRelayed: getParam(TransactionFiltersEnum.isRelayed) }; }; diff --git a/src/pages/Transactions/Transactions.tsx b/src/pages/Transactions/Transactions.tsx index e9436d15..e7388b8c 100644 --- a/src/pages/Transactions/Transactions.tsx +++ b/src/pages/Transactions/Transactions.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react'; import { useSelector } from 'react-redux'; import { useSearchParams } from 'react-router-dom'; -import { TransactionsTable, PulsatingLed, NetworkLink } from 'components'; +import { TransactionsTable, PulsatingLed } from 'components'; import { MethodList } from 'components/TransactionsTable/components'; import { useAdapter, @@ -12,8 +12,6 @@ import { useGetShardText } from 'hooks'; import { activeNetworkSelector } from 'redux/selectors'; -import { transactionsRoutes } from 'routes'; -import { TransactionFiltersEnum } from 'types'; export const Transactions = () => { const ref = useRef(null); @@ -59,7 +57,7 @@ export const Transactions = () => {