File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
static/app/components/calendar Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ import Placeholder from 'sentry/components/placeholder';
66import type { DatePickerProps } from './datePicker' ;
77import type { DateRangePickerProps } from './dateRangePicker' ;
88
9- const LazyDatePicker = lazy ( ( ) => import ( './datePicker' ) ) ;
10- const LazyDateRangePicker = lazy ( ( ) => import ( './dateRangePicker' ) ) ;
9+ // Explicity set component type to avoid complex React.lazy type
10+ const LazyDatePicker : React . FC < DatePickerProps > = lazy ( ( ) => import ( './datePicker' ) ) ;
11+ const LazyDateRangePicker : React . FC < DateRangePickerProps > = lazy (
12+ ( ) => import ( './dateRangePicker' )
13+ ) ;
1114
1215function CalendarSuspenseWrapper ( { children} : { children : React . ReactNode } ) {
1316 return (
You can’t perform that action at this time.
0 commit comments