From d40fc6a5cf44238ee654674501dda4c93bb4a272 Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Thu, 14 Aug 2025 15:57:43 +0100 Subject: [PATCH] tidy up --- frontend/src/components/tools/shared/NavigationControls.tsx | 2 -- frontend/src/components/tools/shared/ReviewPanel.tsx | 1 - frontend/src/components/tools/shared/createFilesToolStep.tsx | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/tools/shared/NavigationControls.tsx b/frontend/src/components/tools/shared/NavigationControls.tsx index 03269e3a0..93eda0d8a 100644 --- a/frontend/src/components/tools/shared/NavigationControls.tsx +++ b/frontend/src/components/tools/shared/NavigationControls.tsx @@ -8,7 +8,6 @@ export interface NavigationControlsProps { totalFiles: number; onPrevious: () => void; onNext: () => void; - onIndexChange: (index: number) => void; } const NavigationControls = ({ @@ -16,7 +15,6 @@ const NavigationControls = ({ totalFiles, onPrevious, onNext, - onIndexChange }: NavigationControlsProps) => { if (totalFiles <= 1) return null; diff --git a/frontend/src/components/tools/shared/ReviewPanel.tsx b/frontend/src/components/tools/shared/ReviewPanel.tsx index 0df4df398..c26d7628f 100644 --- a/frontend/src/components/tools/shared/ReviewPanel.tsx +++ b/frontend/src/components/tools/shared/ReviewPanel.tsx @@ -94,7 +94,6 @@ const ReviewPanel = ({ totalFiles={files.length} onPrevious={handlePrevious} onNext={handleNext} - onIndexChange={setCurrentIndex} /> ); diff --git a/frontend/src/components/tools/shared/createFilesToolStep.tsx b/frontend/src/components/tools/shared/createFilesToolStep.tsx index 89c746c6f..7335a5982 100644 --- a/frontend/src/components/tools/shared/createFilesToolStep.tsx +++ b/frontend/src/components/tools/shared/createFilesToolStep.tsx @@ -14,8 +14,7 @@ export function createFilesToolStep( props: FilesToolStepProps ): React.ReactElement { const { t } = useTranslation(); - const hasFiles = props.selectedFiles.length > 0; - + return createStep("Files", { isVisible: true, isCollapsed: props.isCollapsed, @@ -26,4 +25,4 @@ export function createFilesToolStep( placeholder={props.placeholder || t("files.placeholder", "Select a PDF file in the main view to get started")} /> )); -} \ No newline at end of file +}