Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

18
web/node_modules/rc-picker/es/hooks/useValueTexts.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import shallowEqual from 'shallowequal';
import useMemo from "rc-util/es/hooks/useMemo";
export default function useValueTexts(value, _ref) {
var formatList = _ref.formatList,
generateConfig = _ref.generateConfig,
locale = _ref.locale;
return useMemo(function () {
if (!value) {
return [''];
}
return formatList.map(function (subFormat) {
return generateConfig.locale.format(locale.locale, value, subFormat);
});
}, [value, formatList], function (prev, next) {
return prev[0] !== next[0] || !shallowEqual(prev[1], next[1]);
});
}