From 6818c4657831fb9db53e1276dce1477e0251c758 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 21 Aug 2025 22:11:07 -0600 Subject: [PATCH] rename prop --- .../src/components/ui/report/ReportEditor.tsx | 6 +++--- .../ReportPageController.tsx | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/apps/web/src/components/ui/report/ReportEditor.tsx b/apps/web/src/components/ui/report/ReportEditor.tsx index 539560758..1c4589417 100644 --- a/apps/web/src/components/ui/report/ReportEditor.tsx +++ b/apps/web/src/components/ui/report/ReportEditor.tsx @@ -30,7 +30,7 @@ interface ReportEditorProps { onReady?: (editor: IReportEditor) => void; id?: string; mode?: 'export' | 'default'; - children?: React.ReactNode; + preEditorChildren?: React.ReactNode; postEditorChildren?: React.ReactNode; } @@ -60,7 +60,7 @@ export const ReportEditor = React.memo( useFixedToolbarKit = false, readOnly = false, isStreaming = false, - children, + preEditorChildren, postEditorChildren }, ref @@ -135,7 +135,7 @@ export const ReportEditor = React.memo( variant={variant} readOnly={readOnly} className={cn('editor-container relative overflow-auto', containerClassName)}> - {children} + {preEditorChildren} + } postEditorChildren={ showGeneratingContent ? ( ) : null - }> - - + }> ) : ( )}