mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-06 04:25:22 +00:00
Cleanup
This commit is contained in:
parent
622daba780
commit
34f6bc6182
@ -1,6 +1,5 @@
|
|||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import {
|
import {
|
||||||
Paper,
|
|
||||||
Button,
|
Button,
|
||||||
Stack,
|
Stack,
|
||||||
Text,
|
Text,
|
||||||
@ -8,13 +7,9 @@ import {
|
|||||||
Alert,
|
Alert,
|
||||||
Divider,
|
Divider,
|
||||||
Select,
|
Select,
|
||||||
TextInput,
|
|
||||||
Checkbox,
|
|
||||||
NumberInput,
|
NumberInput,
|
||||||
Center,
|
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import { ArrowDownward } from "@mui/icons-material";
|
import { ArrowDownward } from "@mui/icons-material";
|
||||||
import { useSearchParams } from "react-router-dom";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { FileWithUrl } from "../types/file";
|
import { FileWithUrl } from "../types/file";
|
||||||
import { fileStorage } from "../services/fileStorage";
|
import { fileStorage } from "../services/fileStorage";
|
||||||
@ -277,10 +272,10 @@ const ConvertPanel: React.FC<ConvertPanelProps> = ({ files, setDownloadUrl, para
|
|||||||
onChange={handleToFormatChange}
|
onChange={handleToFormatChange}
|
||||||
data={getAvailableToFormats(fromFormat).map(format => ({
|
data={getAvailableToFormats(fromFormat).map(format => ({
|
||||||
value: format,
|
value: format,
|
||||||
label: format === 'office-word' ? t("convert.wordDoc", "Word Document") :
|
label: format === 'office-word' ? t("convert.wordDoc") :
|
||||||
format === 'office-presentation' ? t("PowerPoint Presentation", "PowerPoint Presentation") :
|
format === 'office-presentation' ? t("convert.powerPointPresentation", "PowerPoint Presentation") :
|
||||||
format === 'office-text' ? t("convert.textRtf", "Text/RTF") :
|
format === 'office-text' ? t("convert.textRtf") :
|
||||||
format === 'image' ? t("convert.images", "Images") :
|
format === 'image' ? t("convert.images") :
|
||||||
format === 'pdf' ? 'PDF' :
|
format === 'pdf' ? 'PDF' :
|
||||||
format.charAt(0).toUpperCase() + format.slice(1)
|
format.charAt(0).toUpperCase() + format.slice(1)
|
||||||
}))}
|
}))}
|
||||||
@ -308,7 +303,7 @@ const ConvertPanel: React.FC<ConvertPanelProps> = ({ files, setDownloadUrl, para
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<NumberInput
|
<NumberInput
|
||||||
label="DPI"
|
label={t("convert.dpi", "DPI")}
|
||||||
value={dpi}
|
value={dpi}
|
||||||
onChange={(val) => typeof val === 'number' && setDpi(val)}
|
onChange={(val) => typeof val === 'number' && setDpi(val)}
|
||||||
min={72}
|
min={72}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user