mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
tidy up
This commit is contained in:
parent
d5fa3ddd94
commit
d40fc6a5cf
@ -8,7 +8,6 @@ export interface NavigationControlsProps {
|
|||||||
totalFiles: number;
|
totalFiles: number;
|
||||||
onPrevious: () => void;
|
onPrevious: () => void;
|
||||||
onNext: () => void;
|
onNext: () => void;
|
||||||
onIndexChange: (index: number) => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const NavigationControls = ({
|
const NavigationControls = ({
|
||||||
@ -16,7 +15,6 @@ const NavigationControls = ({
|
|||||||
totalFiles,
|
totalFiles,
|
||||||
onPrevious,
|
onPrevious,
|
||||||
onNext,
|
onNext,
|
||||||
onIndexChange
|
|
||||||
}: NavigationControlsProps) => {
|
}: NavigationControlsProps) => {
|
||||||
if (totalFiles <= 1) return null;
|
if (totalFiles <= 1) return null;
|
||||||
|
|
||||||
|
@ -94,7 +94,6 @@ const ReviewPanel = ({
|
|||||||
totalFiles={files.length}
|
totalFiles={files.length}
|
||||||
onPrevious={handlePrevious}
|
onPrevious={handlePrevious}
|
||||||
onNext={handleNext}
|
onNext={handleNext}
|
||||||
onIndexChange={setCurrentIndex}
|
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
@ -14,7 +14,6 @@ export function createFilesToolStep(
|
|||||||
props: FilesToolStepProps
|
props: FilesToolStepProps
|
||||||
): React.ReactElement {
|
): React.ReactElement {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const hasFiles = props.selectedFiles.length > 0;
|
|
||||||
|
|
||||||
return createStep("Files", {
|
return createStep("Files", {
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user