fixed compress image

This commit is contained in:
SlimusMinus
2026-10-15 01:29:07 +03:00
parent c56f2bcdb1
commit f75df406ce
5 changed files with 118 additions and 37 deletions

View File

@@ -4,7 +4,7 @@ import RulesModal from "./RulesModal";
import { EMPTY_FORM, CATEGORIES } from "../config/feedConstants";
import { useTranslation } from 'react-i18next';
import { usePostMutation } from "../hooks/usePostMutation";
import { useImageUpload, ACCEPT, MAX_SIZE_MB } from "../hooks/useImageUpload";
import { useImageUpload, ACCEPT, MAX_SOURCE_SIZE_MB } from "../hooks/useImageUpload";
import { validatePostForm } from "../utils/validatePostForm";
import { formatPhone } from "../utils/formatPhone";
import MapModal from "./MapModal";
@@ -242,7 +242,7 @@ export default function CreateUpdatePost({ onClose, onSuccess, initialData, admi
</label>
{imgError && <p className="f-err-msg">{imgError}</p>}
<p className="f-hint">{t('post.photoHint', { maxSize: MAX_SIZE_MB })}</p>
<p className="f-hint">{t('post.photoHint', { maxSize: MAX_SOURCE_SIZE_MB })}</p>
</div>
<button