mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-07 01:14:57 +05:30
fix: unnecessary
This commit is contained in:
parent
93c776aa72
commit
001b9a525a
3 changed files with 17 additions and 26 deletions
|
|
@ -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'}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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'}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue