Skip to content

Commit

Permalink
change the message validation data and add alkhalil area in the quest…
Browse files Browse the repository at this point in the history
…ion file #183
  • Loading branch information
ahmadysalah committed Jun 9, 2020
1 parent 82d2740 commit 2264f55
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const GereralInfos = ({ handleFormInput, formValues, errorMsg }) => {
advertisement,
codeExperience,
primaryMotivationForm,
KhalilAreas,
} = selectBoxQuestions;

const KhalilAreas = ['Old Town', 'New Town'];
return (
<div className="availability">
<div className={classes.gender}>
Expand Down Expand Up @@ -121,7 +121,7 @@ const GereralInfos = ({ handleFormInput, formValues, errorMsg }) => {
}
setVal={handleFormInput}
value={formValues.university}
isError={errorMsg.includes('Chose your university')}
isError={errorMsg.includes('Select your university')}
/>
<InputText
className="nonlinearSelect"
Expand Down Expand Up @@ -158,7 +158,7 @@ const GereralInfos = ({ handleFormInput, formValues, errorMsg }) => {
items={advertisement}
setVal={handleFormInput}
value={formValues.caReading}
isError={errorMsg.includes('Select how you here about Us first')}
isError={errorMsg.includes('Select how did you hear about Us first')}
/>
<InputText
className="nonlinearSelect"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ProInfos = ({ handleFormInput, formValues, errorMsg }) => (
name="jobTitle"
message="Write [No] if you are not employed"
onChange={handleFormInput}
isError={errorMsg.includes(`if you don't have job just write [ No ]`)}
isError={errorMsg.includes(`if you don't have job just write N/A`)}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const primaryMotivationForm = [
"I want to learn something new - I don't know if I want a coding career",
'I want to be part of the GSG and Code Academy community',
];
const KhalilAreas = ['Old Town', 'New Town'];

export default {
GazaAreas,
Expand All @@ -61,4 +62,5 @@ export default {
advertisement,
codeExperience,
primaryMotivationForm,
KhalilAreas,
};
5 changes: 4 additions & 1 deletion client/src/utils/application/nLinearStepperValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const generalInfosSchema = yup.object().shape({
.string()
.required(`Select your primary motivation first`)
.trim(),
caReading: yup.string().required(`Select how you here about Us first`).trim(),
caReading: yup
.string()
.required(`Select how did you hear about Us first`)
.trim(),
cvLink: yup
.string()
.matches(
Expand Down

0 comments on commit 2264f55

Please sign in to comment.