Revert changes to awards

This commit is contained in:
Michael Manganiello
2022-01-09 17:15:24 -03:00
parent 3be316e9dd
commit a9d1f0fa7b
2 changed files with 1 additions and 16 deletions
-9
View File
@@ -11,7 +11,6 @@ const initialValues = {
title: '',
awarder: '',
date: '',
url: '',
summary: '',
};
@@ -22,7 +21,6 @@ const AwardModal = () => {
title: Yup.string().required(t('shared.forms.validation.required')),
awarder: Yup.string().required(t('shared.forms.validation.required')),
date: Yup.date().max(new Date()),
url: Yup.string().url(t('shared.forms.validation.url')),
summary: Yup.string(),
});
@@ -58,13 +56,6 @@ const AwardModal = () => {
{...getFieldProps(formik, schema, 'date')}
/>
<Input
label={t('shared.forms.website')}
className="col-span-2"
placeholder="https://"
{...getFieldProps(formik, schema, 'url')}
/>
<Input
type="textarea"
label={t('shared.forms.summary')}
+1 -7
View File
@@ -7,13 +7,7 @@ const AwardItem = ({ item, language }) => (
<div>
<div className="flex justify-between items-center">
<div className="flex flex-col text-left mr-2">
{item.url ? (
<a href={item.url} target="_blank" rel="noopener noreferrer">
<h6 className="font-semibold text-sm">{item.title}</h6>
</a>
) : (
<h6 className="font-semibold text-sm">{item.title}</h6>
)}
<h6 className="font-semibold text-sm">{item.title}</h6>
<span className="text-xs">{item.awarder}</span>
</div>
{item.date && (