- bumped version to 2.3.3

- fixed text alignment issues
- updated dependencies
- added ukranian language
This commit is contained in:
Amruth Pillai
2020-12-09 10:40:27 +05:30
parent 88a3fe5148
commit df71b86028
32 changed files with 942 additions and 1021 deletions

View File

@ -15,6 +15,7 @@ import 'dayjs/locale/nl';
import 'dayjs/locale/pl';
import 'dayjs/locale/pt';
import 'dayjs/locale/tr';
import 'dayjs/locale/uk';
import relativeTime from 'dayjs/plugin/relativeTime';
dayjs.extend(relativeTime);

View File

@ -1,15 +1,13 @@
import dayjs from 'dayjs';
import { get, isEmpty } from 'lodash';
export const getModalText = (isEditMode, type, t) => {
return isEditMode
export const getModalText = (isEditMode, type, t) =>
isEditMode
? `${t('shared.buttons.edit')} ${type}`
: `${t('shared.buttons.add')} ${type}`;
};
export const safetyCheck = (section, path = 'items') => {
return !!(section && section.visible === true && !isEmpty(section[path]));
};
export const safetyCheck = (section, path = 'items') =>
!!(section && section.visible === true && !isEmpty(section[path]));
export const handleKeyUp = (event, action) => {
(event.which === 13 || event.which === 32) && action();