Remove useTranslation hook from util functions

This commit is contained in:
Rob Gries
2020-10-02 18:17:48 +00:00
parent 1c25ffe037
commit 370de9ec47
5 changed files with 61 additions and 56 deletions

View File

@ -21,7 +21,7 @@ const List = ({
hasDate,
event,
}) => {
const { i18n } = useTranslation();
const { t, i18n } = useTranslation();
const items = useSelector(path, []);
const { emitter } = useContext(ModalContext);
@ -49,7 +49,7 @@ const List = ({
startDate: x.startDate,
endDate: x.endDate,
language: i18n.language,
}))
}, t))
}
text={text || get(x, textPath, '')}
onEdit={() => handleEdit(x)}