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 { lazy, useRef, useState } from 'react';
|
||||||
import { DynamicReportPageController } from '@/controllers/ReportPageControllers/DynamicReportPageController';
|
import { ReportPageController } from '@/controllers/ReportPageControllers/ReportPageController';
|
||||||
import { useMemoizedFn } from '@/hooks/useMemoizedFn';
|
import { useMemoizedFn } from '@/hooks/useMemoizedFn';
|
||||||
import { printHTMLPage } from '@/lib/print';
|
import { printHTMLPage } from '@/lib/print';
|
||||||
import { timeout } from '@/lib/timeout';
|
import { timeout } from '@/lib/timeout';
|
||||||
|
@ -28,7 +28,7 @@ const ExportContainerComponent: React.FC<{
|
||||||
zIndex: -1,
|
zIndex: -1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DynamicReportPageController
|
<ReportPageController
|
||||||
reportId={reportId}
|
reportId={reportId}
|
||||||
readOnly={true}
|
readOnly={true}
|
||||||
mode="export"
|
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} />
|
<GeneratingContent messageId={messageId || ''} className={commonClassName} />
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
></DynamicReportEditor>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<ReportEditorSkeleton />
|
<ReportEditorSkeleton />
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue