fix(profile): update allowed image formats and adjust file input accept attribute
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
"or": "Or",
|
"or": "Or",
|
||||||
"emailError": "Please enter a valid email.",
|
"emailError": "Please enter a valid email.",
|
||||||
"profilePicture": "User account image",
|
"profilePicture": "User account image",
|
||||||
"allowedFormat": "Allowed formats: PNG, JPEG, GIF (maximum 10 MB)",
|
"allowedFormat": "Allowed formats: PNG, JPG, JPEG, GIF (maximum 10 MB)",
|
||||||
"uploadPicture": "Upload image",
|
"uploadPicture": "Upload image",
|
||||||
"phoneNumberText": "Your new contact number will replace your previous contact number (<1>{{phoneNumber}}</1>)",
|
"phoneNumberText": "Your new contact number will replace your previous contact number (<1>{{phoneNumber}}</1>)",
|
||||||
"notDetermined": "Not determined",
|
"notDetermined": "Not determined",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"or": "یا",
|
"or": "یا",
|
||||||
"emailError": "لطفا یک ایمیل معتبر وارد کنید",
|
"emailError": "لطفا یک ایمیل معتبر وارد کنید",
|
||||||
"profilePicture": "تصویر حساب کاربری",
|
"profilePicture": "تصویر حساب کاربری",
|
||||||
"allowedFormat": "فرمتهای مجاز: PNG، JPEG، GIF (حداکثر ۱۰ مگابایت)",
|
"allowedFormat": "فرمتهای مجاز: PNG، JPG، JPEG، GIF (حداکثر ۱۰ مگابایت)",
|
||||||
"uploadPicture": "بارگذاری تصویر",
|
"uploadPicture": "بارگذاری تصویر",
|
||||||
"phoneNumberText": "شماره تماس جدید شما جایگزین شماره قبلی (<1>{{phoneNumber}}</1>) خواهد شد",
|
"phoneNumberText": "شماره تماس جدید شما جایگزین شماره قبلی (<1>{{phoneNumber}}</1>) خواهد شد",
|
||||||
"notDetermined": "تعیین نشده",
|
"notDetermined": "تعیین نشده",
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export function ProfileImage({
|
|||||||
: t('settingForm.uploadPicture')}
|
: t('settingForm.uploadPicture')}
|
||||||
<input
|
<input
|
||||||
hidden
|
hidden
|
||||||
accept="image/png, image/jpeg, image/gif"
|
accept="image/*"
|
||||||
type="file"
|
type="file"
|
||||||
onChange={handleImageChange}
|
onChange={handleImageChange}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user