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

@ -1,5 +1,6 @@
import { get, isEmpty } from 'lodash';
import React, { memo, useContext } from 'react';
import { useTranslation } from 'react-i18next';
import { MdAdd } from 'react-icons/md';
import ModalContext from '../../../contexts/ModalContext';
import { useSelector } from '../../../contexts/ResumeContext';
@ -20,6 +21,7 @@ const List = ({
hasDate,
event,
}) => {
const { i18n } = useTranslation();
const items = useSelector(path, []);
const { emitter } = useContext(ModalContext);
@ -46,6 +48,7 @@ const List = ({
formatDateRange({
startDate: x.startDate,
endDate: x.endDate,
language: i18n.language,
}))
}
text={text || get(x, textPath, '')}