mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
LAng fix
This commit is contained in:
parent
1aba580a96
commit
87cef82e8d
@ -12,9 +12,9 @@ interface FileUploadButtonProps {
|
|||||||
fullWidth?: boolean;
|
fullWidth?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FileUploadButton = ({
|
const FileUploadButton = ({
|
||||||
file,
|
file,
|
||||||
onChange,
|
onChange,
|
||||||
accept = "*/*",
|
accept = "*/*",
|
||||||
disabled = false,
|
disabled = false,
|
||||||
placeholder,
|
placeholder,
|
||||||
@ -24,7 +24,7 @@ const FileUploadButton = ({
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const resetRef = useRef<() => void>(null);
|
const resetRef = useRef<() => void>(null);
|
||||||
|
|
||||||
const defaultPlaceholder = t('common.chooseFile', 'Choose File');
|
const defaultPlaceholder = t('chooseFile', 'Choose File');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FileButton
|
<FileButton
|
||||||
@ -42,4 +42,4 @@ const FileUploadButton = ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default FileUploadButton;
|
export default FileUploadButton;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user