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

View File

@@ -0,0 +1,24 @@
import * as React from 'react';
import Header from '../Header';
import PanelContext from '../../PanelContext';
function TimeHeader(props) {
var _React$useContext = React.useContext(PanelContext),
hideHeader = _React$useContext.hideHeader;
if (hideHeader) {
return null;
}
var prefixCls = props.prefixCls,
generateConfig = props.generateConfig,
locale = props.locale,
value = props.value,
format = props.format;
var headerPrefixCls = "".concat(prefixCls, "-header");
return React.createElement(Header, {
prefixCls: headerPrefixCls
}, value ? generateConfig.locale.format(locale.locale, value, format) : "\xA0");
}
export default TimeHeader;