mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
tidy up
This commit is contained in:
parent
d5fa3ddd94
commit
d40fc6a5cf
@ -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;
|
||||
|
||||
|
@ -94,7 +94,6 @@ const ReviewPanel = ({
|
||||
totalFiles={files.length}
|
||||
onPrevious={handlePrevious}
|
||||
onNext={handleNext}
|
||||
onIndexChange={setCurrentIndex}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
|
@ -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")}
|
||||
/>
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user