Compare commits

..

2 Commits

Author SHA1 Message Date
RustamRu
351420bc62 0.9.1
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
2025-02-23 12:37:44 +03:00
RustamRu
61b042eee6 fix: image input accept, i18n (#88)
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
2025-02-23 12:37:04 +03:00
4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "dry-wash", "name": "dry-wash",
"version": "0.9.0", "version": "0.9.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "dry-wash", "name": "dry-wash",
"version": "0.9.0", "version": "0.9.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@babel/core": "^7.26.7", "@babel/core": "^7.26.7",

View File

@@ -1,6 +1,6 @@
{ {
"name": "dry-wash", "name": "dry-wash",
"version": "0.9.0", "version": "0.9.1",
"description": "<a id=\"readme-top\"></a>", "description": "<a id=\"readme-top\"></a>",
"main": "./src/index.tsx", "main": "./src/index.tsx",
"scripts": { "scripts": {

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(() => {