This commit is contained in:
Connor Yoh 2025-08-18 15:51:01 +01:00
parent 1aba580a96
commit 87cef82e8d

View File

@ -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;