solving bugs reported in GH issues

This commit is contained in:
Amruth Pillai
2020-07-24 21:54:48 +05:30
parent 586f2b1eca
commit f2a0b612d0
21 changed files with 827 additions and 979 deletions

View File

@ -25,7 +25,7 @@ const EducationModal = () => {
field: Yup.string().required(t('shared.forms.validation.required')),
degree: Yup.string(),
gpa: Yup.string(),
startDate: Yup.date().required(t('shared.forms.validation.required')),
startDate: Yup.date(),
endDate: Yup.date().when(
'startDate',
(startDate, yupSchema) =>

View File

@ -41,7 +41,7 @@ const SkillModal = () => {
<Input
label={t('builder.skills.level')}
placeholder="Fundamental Awareness"
placeholder="Novice"
{...getFieldProps(formik, schema, 'level')}
/>
</div>

View File

@ -8,7 +8,7 @@ import { getFieldProps } from '../../utils';
import DataModal from '../DataModal';
const initialValues = {
url: 'https://',
url: '',
network: '',
username: '',
};
@ -55,7 +55,7 @@ const SocialModal = () => {
<Input
label={t('builder.social.url')}
className="col-span-2"
placeholder="https://twitter.com/KingOKings"
placeholder="https://"
{...getFieldProps(formik, schema, 'url')}
/>
</div>

View File

@ -10,7 +10,7 @@ import DataModal from '../DataModal';
const initialValues = {
company: '',
position: '',
website: 'https://',
website: '',
startDate: '',
endDate: '',
summary: '',
@ -23,7 +23,7 @@ const WorkModal = () => {
company: Yup.string().required(t('shared.forms.validation.required')),
position: Yup.string().required(t('shared.forms.validation.required')),
website: Yup.string().url(t('shared.forms.validation.url')),
startDate: Yup.date().required(t('shared.forms.validation.required')),
startDate: Yup.date(),
endDate: Yup.date().when(
'startDate',
(startDate, yupSchema) =>
@ -64,7 +64,7 @@ const WorkModal = () => {
<Input
label={t('shared.forms.website')}
placeholder="https://example.com/"
placeholder="https://"
{...getFieldProps(formik, schema, 'website')}
/>