fix: image input accept, i18n (#88)
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
This commit is contained in:
parent
ac006267a2
commit
61b042eee6
@ -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]);
|
||||||
|
@ -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(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user