1414// See the License for the specific language governing permissions and
1515// limitations under the License.
1616
17+ import prettyBytes from 'pretty-bytes' ;
1718import React , { useContext , useEffect , useState } from 'react' ;
1819import { useTranslation } from 'react-i18next' ;
1920import { DownloadButton } from '../../../components/Buttons/DownloadButton' ;
@@ -26,11 +27,9 @@ import { DataSlide } from '../../../components/Slides/DataSlide';
2627import { FFTableText } from '../../../components/Tables/FFTableText' ;
2728import { DataTable } from '../../../components/Tables/Table' ;
2829import { ApplicationContext } from '../../../contexts/ApplicationContext' ;
29- import { DateFilterContext } from '../../../contexts/DateFilterContext' ;
3030import { FilterContext } from '../../../contexts/FilterContext' ;
3131import { SlideContext } from '../../../contexts/SlideContext' ;
3232import { SnackbarContext } from '../../../contexts/SnackbarContext' ;
33- import prettyBytes from 'pretty-bytes' ;
3433import {
3534 DataFilters ,
3635 FF_Paths ,
@@ -45,7 +44,6 @@ import { hasDataEvent } from '../../../utils/wsEvents';
4544export const OffChainData : ( ) => JSX . Element = ( ) => {
4645 const { newEvents, lastRefreshTime, clearNewEvents, selectedNamespace } =
4746 useContext ( ApplicationContext ) ;
48- const { dateFilter } = useContext ( DateFilterContext ) ;
4947 const { filterAnchor, setFilterAnchor, filterString } =
5048 useContext ( FilterContext ) ;
5149 const { slideID, setSlideSearchParam } = useContext ( SlideContext ) ;
@@ -85,13 +83,12 @@ export const OffChainData: () => JSX.Element = () => {
8583 // Data
8684 useEffect ( ( ) => {
8785 isMounted &&
88- dateFilter &&
8986 fetchCatcher (
9087 `${ FF_Paths . nsPrefix } /${ selectedNamespace } ${
9188 FF_Paths . data
9289 } ?limit=${ rowsPerPage } &count&skip=${ rowsPerPage * currentPage } ${
93- dateFilter . filterString
94- } ${ filterString ?? '' } `
90+ filterString ?? ''
91+ } `
9592 )
9693 . then ( ( dataRes : IPagedDataResponse ) => {
9794 if ( isMounted ) {
@@ -106,7 +103,6 @@ export const OffChainData: () => JSX.Element = () => {
106103 rowsPerPage ,
107104 currentPage ,
108105 selectedNamespace ,
109- dateFilter ,
110106 filterString ,
111107 lastRefreshTime ,
112108 isMounted ,
@@ -181,6 +177,7 @@ export const OffChainData: () => JSX.Element = () => {
181177 subtitle = { t ( 'offChain' ) }
182178 showRefreshBtn = { hasDataEvent ( newEvents ) }
183179 onRefresh = { clearNewEvents }
180+ noDateFilter
184181 > </ Header >
185182 < FFPageLayout >
186183 < DataTable
0 commit comments