fix: unnecessary

This commit is contained in:
Ibrahima G. Coulibaly
2025-05-13 22:52:13 +01:00
parent 93c776aa72
commit 001b9a525a
3 changed files with 17 additions and 26 deletions

View File

@@ -139,9 +139,7 @@ export default function RotatePdf({
inputComponent={
<ToolPdfInput
value={input}
onChange={(v) => {
setInput(isArray(v) ? v[0] : v);
}}
onChange={setInput}
accept={['application/pdf']}
title={'Input PDF'}
/>

View File

@@ -8,7 +8,6 @@ import { parsePageRanges, splitPdf } from './service';
import { CardExampleType } from '@components/examples/ToolExamples';
import { PDFDocument } from 'pdf-lib';
import ToolPdfInput from '@components/input/ToolPdfInput';
import { isArray } from 'lodash';
type InitialValuesType = {
pageRanges: string;
@@ -117,10 +116,7 @@ export default function SplitPdf({ title }: ToolComponentProps) {
inputComponent={
<ToolPdfInput
value={input}
onChange={(v) => {
setInput(isArray(v) ? v[0] : v);
}}
multiple={false}
onChange={setInput}
accept={['application/pdf']}
title={'Input PDF'}
/>