Remove dynamic report imports

This commit is contained in:
Nate Kelley 2025-09-04 22:56:58 -06:00
parent aac29b0356
commit ccb735a120
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 3 additions and 10 deletions

View File

@ -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"

View File

@ -1,7 +0,0 @@
import { lazy } from 'react';
export const DynamicReportPageController = lazy(() =>
import('./ReportPageController').then((mod) => ({
default: mod.ReportPageController,
}))
);

View File

@ -104,7 +104,7 @@ export const ReportPageController: React.FC<{
<GeneratingContent messageId={messageId || ''} className={commonClassName} /> <GeneratingContent messageId={messageId || ''} className={commonClassName} />
) : null ) : null
} }
></DynamicReportEditor> />
) : ( ) : (
<ReportEditorSkeleton /> <ReportEditorSkeleton />
)} )}