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