Browse Source

Phone number bug fixed

feature/587
jovan.cirkovic 3 years ago
parent
commit
f850d0ad13

+ 1
- 0
src/components/ProfileCard/EditProfile/EditProfile.js View File

@@ -168,6 +168,7 @@ const EditProfile = (props) => {
leftText={t("editProfile.phoneNumber").toUpperCase()}
/>
<InputField
type="number"
name="firmPhone"
value={formik.values.firmPhone}
onChange={formik.handleChange}

+ 1
- 1
src/components/ProfileCard/EditProfile/EditProfile.styled.js View File

@@ -12,7 +12,7 @@ export const EditProfileContainer = styled(Box)`
z-index: 150;
padding: 36px 144px;
width: 623px;
max-height: 90vh;
max-height: 95vh;
overflow-y: auto;

@media screen and (max-width: 600px) {

+ 1
- 0
src/i18n/resources/rs.js View File

@@ -209,6 +209,7 @@ export default {
labelNameRequired: "Ime firme je obavezno!",
labelPIBRequired: "PIB firme je obavezan!",
labelLocationRequired: "Lokacija je obavezna!",
labelPhoneValid: "Unesite validan broj telefona",
labelPhoneRequired: "Broj telefona je obavezan!",
},
deleteOffer: {

+ 4
- 1
src/validations/editProfileValidation.js View File

@@ -10,5 +10,8 @@ export default Yup.object().shape({
),
firmWebsite: Yup.string(),
firmApplink: Yup.string(),
firmPhone: Yup.string().required(i18n.t("editProfile.labelPhoneRequired")),
firmPhone: Yup.string()
.required(i18n.t("editProfile.labelPhoneRequired"))
.min(6, i18n.t("editProfile.labelPhoneValid"))
.max(14, i18n.t("editProfile.labelPhoneValid")),
});

Loading…
Cancel
Save