Skip to content

Commit

Permalink
[remove-pool-datefilter]
Browse files Browse the repository at this point in the history
Signed-off-by: David Echelberger <[email protected]>
  • Loading branch information
dechdev committed Nov 11, 2022
1 parent 53ca21d commit 8e2d025
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/Tokens/views/Pools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { HashPopover } from '../../../components/Popovers/HashPopover';
import { FFTableText } from '../../../components/Tables/FFTableText';
import { DataTable } from '../../../components/Tables/Table';
import { ApplicationContext } from '../../../contexts/ApplicationContext';
import { DateFilterContext } from '../../../contexts/DateFilterContext';
import { FilterContext } from '../../../contexts/FilterContext';
import { SnackbarContext } from '../../../contexts/SnackbarContext';
import {
Expand All @@ -45,7 +44,6 @@ import { hasPoolEvent } from '../../../utils/wsEvents';
export const TokensPools: () => JSX.Element = () => {
const { newEvents, lastRefreshTime, clearNewEvents, selectedNamespace } =
useContext(ApplicationContext);
const { dateFilter } = useContext(DateFilterContext);
const { filterAnchor, setFilterAnchor, filterString } =
useContext(FilterContext);
const { reportFetchError } = useContext(SnackbarContext);
Expand All @@ -69,13 +67,12 @@ export const TokensPools: () => JSX.Element = () => {
// Token pools
useEffect(() => {
isMounted &&
dateFilter &&
fetchCatcher(
`${FF_Paths.nsPrefix}/${selectedNamespace}${
FF_Paths.tokenPools
}?limit=${rowsPerPage}&count&skip=${rowsPerPage * currentPage}${
dateFilter.filterString
}${filterString ?? ''}`
filterString ?? ''
}`
)
.then((tokenPoolsRes: IPagedTokenPoolResponse) => {
setTokenPools(tokenPoolsRes.items);
Expand All @@ -88,7 +85,6 @@ export const TokensPools: () => JSX.Element = () => {
rowsPerPage,
currentPage,
selectedNamespace,
dateFilter,
filterString,
lastRefreshTime,
isMounted,
Expand Down Expand Up @@ -175,6 +171,7 @@ export const TokensPools: () => JSX.Element = () => {
subtitle={t('tokens')}
showRefreshBtn={hasPoolEvent(newEvents)}
onRefresh={clearNewEvents}
noDateFilter
></Header>
<FFPageLayout>
<DataTable
Expand Down

0 comments on commit 8e2d025

Please sign in to comment.