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"
label={t('shared.forms.startDate')}
placeholder="6th August 208"
{...getFieldProps(formik, schema, 'startDate')}
{...getFieldProps(formik, schema, 'date')}
/>
<Input

View File

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