mirror of https://github.com/buster-so/buster.git
Remove dynamic report imports
This commit is contained in:
parent
aac29b0356
commit
ccb735a120
|
@ -1,5 +1,5 @@
|
|||
import { lazy, useRef, useState } from 'react';
|
||||
import { DynamicReportPageController } from '@/controllers/ReportPageControllers/DynamicReportPageController';
|
||||
import { ReportPageController } from '@/controllers/ReportPageControllers/ReportPageController';
|
||||
import { useMemoizedFn } from '@/hooks/useMemoizedFn';
|
||||
import { printHTMLPage } from '@/lib/print';
|
||||
import { timeout } from '@/lib/timeout';
|
||||
|
@ -28,7 +28,7 @@ const ExportContainerComponent: React.FC<{
|
|||
zIndex: -1,
|
||||
}}
|
||||
>
|
||||
<DynamicReportPageController
|
||||
<ReportPageController
|
||||
reportId={reportId}
|
||||
readOnly={true}
|
||||
mode="export"
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import { lazy } from 'react';
|
||||
|
||||
export const DynamicReportPageController = lazy(() =>
|
||||
import('./ReportPageController').then((mod) => ({
|
||||
default: mod.ReportPageController,
|
||||
}))
|
||||
);
|
|
@ -104,7 +104,7 @@ export const ReportPageController: React.FC<{
|
|||
<GeneratingContent messageId={messageId || ''} className={commonClassName} />
|
||||
) : null
|
||||
}
|
||||
></DynamicReportEditor>
|
||||
/>
|
||||
) : (
|
||||
<ReportEditorSkeleton />
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue