Latest updates from IceHrmPro
This commit is contained in:
13
web/node_modules/antd/es/_util/getRenderPropValue.js
generated
vendored
Normal file
13
web/node_modules/antd/es/_util/getRenderPropValue.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
export var getRenderPropValue = function getRenderPropValue(propValue) {
|
||||
if (!propValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var isRenderFunction = typeof propValue === 'function';
|
||||
|
||||
if (isRenderFunction) {
|
||||
return propValue();
|
||||
}
|
||||
|
||||
return propValue;
|
||||
};
|
||||
Reference in New Issue
Block a user