fix: image input accept, i18n (#88)
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good

This commit is contained in:
RustamRu 2025-02-23 12:37:04 +03:00
parent ac006267a2
commit 61b042eee6
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ export const CarImageForm: FC<CarImageFormProps> = memo(function CarImageForm({
<Input <Input
{...field} {...field}
ref={fileInputRef} ref={fileInputRef}
accept='.jpg,.png' accept='image/png,image/jpeg'
value={value?.fileName} value={value?.fileName}
onChange={(event) => { onChange={(event) => {
onChange(event.target.files[0]); onChange(event.target.files[0]);

View File

@ -11,7 +11,7 @@ export const useHandleUploadCarImageResponse = (query: {
}) => { }) => {
const toast = useToast(); const toast = useToast();
const { t } = useTranslation('~', { const { t } = useTranslation('~', {
keyPrefix: 'dry-wash.order-create.upload-car-image-query', keyPrefix: 'dry-wash.order-view.upload-car-image-query',
}); });
useEffect(() => { useEffect(() => {