@@ -11,8 +11,7 @@ import {
11
11
PoolTableTransactionType ,
12
12
usePoolTransactions ,
13
13
} from 'graphql/data/pools/usePoolTransactions'
14
- import { getSupportedGraphQlChain , supportedChainIdFromGQLChain } from 'graphql/data/util'
15
- import { OrderDirection , Transaction_OrderBy } from 'graphql/thegraph/__generated__/types-and-hooks'
14
+ import { OrderDirection , getSupportedGraphQlChain , supportedChainIdFromGQLChain } from 'graphql/data/util'
16
15
import { useActiveLocalCurrency } from 'hooks/useActiveLocalCurrency'
17
16
import { Trans } from 'i18n'
18
17
import { useMemo , useReducer , useState } from 'react'
@@ -32,11 +31,6 @@ const TableWrapper = styled.div`
32
31
min-height: 256px;
33
32
`
34
33
35
- type PoolTxTableSortState = {
36
- sortBy : Transaction_OrderBy
37
- sortDirection : OrderDirection
38
- }
39
-
40
34
enum PoolTransactionColumn {
41
35
Timestamp ,
42
36
Type ,
@@ -85,10 +79,6 @@ export function PoolDetailsTransactionsTable({
85
79
PoolTableTransactionType . MINT ,
86
80
] )
87
81
88
- const [ sortState ] = useState < PoolTxTableSortState > ( {
89
- sortBy : Transaction_OrderBy . Timestamp ,
90
- sortDirection : OrderDirection . Desc ,
91
- } )
92
82
const { transactions, loading, loadMore, error } = usePoolTransactions (
93
83
poolAddress ,
94
84
chain . id ,
@@ -106,8 +96,8 @@ export function PoolDetailsTransactionsTable({
106
96
header : ( ) => (
107
97
< Cell minWidth = { PoolTransactionColumnWidth [ PoolTransactionColumn . Timestamp ] } justifyContent = "flex-start" >
108
98
< Row gap = "4px" >
109
- { sortState . sortBy === Transaction_OrderBy . Timestamp && < HeaderArrow direction = { OrderDirection . Desc } /> }
110
- < HeaderSortText $active = { sortState . sortBy === Transaction_OrderBy . Timestamp } >
99
+ < HeaderArrow direction = { OrderDirection . Desc } />
100
+ < HeaderSortText $active >
111
101
< Trans i18nKey = "common.time" />
112
102
</ HeaderSortText >
113
103
</ Row >
@@ -288,7 +278,6 @@ export function PoolDetailsTransactionsTable({
288
278
formatFiatPrice ,
289
279
formatNumber ,
290
280
showLoadingSkeleton ,
291
- sortState . sortBy ,
292
281
token0 ,
293
282
token1 ?. symbol ,
294
283
] )
0 commit comments