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;
}
const FileUploadButton = ({
file,
onChange,
const FileUploadButton = ({
file,
onChange,
accept = "*/*",
disabled = false,
placeholder,
@ -24,7 +24,7 @@ const FileUploadButton = ({
const { t } = useTranslation();
const resetRef = useRef<() => void>(null);
const defaultPlaceholder = t('common.chooseFile', 'Choose File');
const defaultPlaceholder = t('chooseFile', 'Choose File');
return (
<FileButton
@ -42,4 +42,4 @@ const FileUploadButton = ({
);
};
export default FileUploadButton;
export default FileUploadButton;