1
1
import { Component , Fragment } from 'react' ;
2
- import LazyLoad from 'react-lazyload' ;
2
+ // import LazyLoad from 'react-lazyload';
3
3
import type { WithRouterProps } from 'react-router' ;
4
4
import type { useSortable } from '@dnd-kit/sortable' ;
5
5
import styled from '@emotion/styled' ;
@@ -226,7 +226,7 @@ class WidgetCard extends Component<Props, State> {
226
226
renderErrorMessage,
227
227
tableItemLimit,
228
228
windowWidth,
229
- noLazyLoad,
229
+ // noLazyLoad,
230
230
showStoredAlert,
231
231
noDashboardsMEPProvider,
232
232
dashboardFilters,
@@ -349,7 +349,8 @@ class WidgetCard extends Component<Props, State> {
349
349
< IconWarning color = "gray500" size = "lg" />
350
350
</ StyledErrorPanel >
351
351
</ Fragment >
352
- ) : noLazyLoad ? (
352
+ ) : (
353
+ // noLazyLoad ?
353
354
< WidgetCardChartContainer
354
355
location = { location }
355
356
api = { api }
@@ -364,23 +365,28 @@ class WidgetCard extends Component<Props, State> {
364
365
dashboardFilters = { dashboardFilters }
365
366
chartGroup = { DASHBOARD_CHART_GROUP }
366
367
/>
367
- ) : (
368
- < LazyLoad once resize height = { 200 } >
369
- < WidgetCardChartContainer
370
- location = { location }
371
- api = { api }
372
- organization = { organization }
373
- selection = { selection }
374
- widget = { widget }
375
- isMobile = { isMobile }
376
- renderErrorMessage = { renderErrorMessage }
377
- tableItemLimit = { tableItemLimit }
378
- windowWidth = { windowWidth }
379
- onDataFetched = { this . setData }
380
- dashboardFilters = { dashboardFilters }
381
- chartGroup = { DASHBOARD_CHART_GROUP }
382
- />
383
- </ LazyLoad >
368
+ // )
369
+ // : (
370
+ // <LazyLoad
371
+ // once
372
+ // resize
373
+ // height={200}
374
+ // >
375
+ // <WidgetCardChartContainer
376
+ // location={location}
377
+ // api={api}
378
+ // organization={organization}
379
+ // selection={selection}
380
+ // widget={widget}
381
+ // isMobile={isMobile}
382
+ // renderErrorMessage={renderErrorMessage}
383
+ // tableItemLimit={tableItemLimit}
384
+ // windowWidth={windowWidth}
385
+ // onDataFetched={this.setData}
386
+ // dashboardFilters={dashboardFilters}
387
+ // chartGroup={DASHBOARD_CHART_GROUP}
388
+ // />
389
+ // </LazyLoad>
384
390
) }
385
391
{ this . renderToolbar ( ) }
386
392
</ WidgetCardPanel >
0 commit comments