fixed compress image
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user