use date attribute for start date

This commit is contained in:
Ryan Polley
2020-11-09 16:04:03 -06:00
parent 81ad16ae8a
commit e2b242d40d
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ const ProjectModal = () => {
type="date" type="date"
label={t('shared.forms.startDate')} label={t('shared.forms.startDate')}
placeholder="6th August 208" placeholder="6th August 208"
{...getFieldProps(formik, schema, 'startDate')} {...getFieldProps(formik, schema, 'date')}
/> />
<Input <Input

View File

@ -17,12 +17,12 @@ const ProjectItem = ({ item, language }) => {
</a> </a>
)} )}
</div> </div>
{(item.startDate || item.date) && ( {item.date && (
<h6 className="text-xs font-medium text-right"> <h6 className="text-xs font-medium text-right">
( (
{formatDateRange( {formatDateRange(
{ {
startDate: item.startDate? item.startDate : item.date, startDate: item.date,
endDate: item.endDate, endDate: item.endDate,
language, language,
}, },