@r365/react-calendar-timeline
Advanced tools
Comparing version 0.26.7-beta.0 to 0.26.7-beta.1
@@ -219,4 +219,3 @@ "use strict"; | ||
var props = this.getStateAndHelpers(); | ||
var Renderer = this.props.children; | ||
return /*#__PURE__*/_react["default"].createElement(Renderer, props); | ||
return this.props.children(props); | ||
} | ||
@@ -223,0 +222,0 @@ }]); |
@@ -101,6 +101,5 @@ "use strict"; | ||
headerData = _this$props2.headerData; | ||
var Renderer = intervalRenderer; | ||
if (Renderer) { | ||
return /*#__PURE__*/_react["default"].createElement(Renderer, { | ||
if (intervalRenderer) { | ||
return intervalRenderer({ | ||
getIntervalProps: this.getIntervalProps, | ||
@@ -115,2 +114,3 @@ intervalContext: { | ||
; | ||
return /*#__PURE__*/_react["default"].createElement("div", _extends({}, this.getIntervalProps({}), { | ||
@@ -117,0 +117,0 @@ className: "rct-dateHeader ".concat(this.props.primaryHeader ? 'rct-dateHeader-primary' : '') |
@@ -87,4 +87,3 @@ "use strict"; | ||
var props = this.getStateAndHelpers(); | ||
var Renderer = this.props.children; | ||
return /*#__PURE__*/_react["default"].createElement(Renderer, props); | ||
return this.props.children(props); | ||
} | ||
@@ -91,0 +90,0 @@ }]); |
{ | ||
"name": "@r365/react-calendar-timeline", | ||
"version": "0.26.7-beta.0", | ||
"version": "0.26.7-beta.1", | ||
"description": "react calendar timeline", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -199,4 +199,3 @@ import React from 'react' | ||
const props = this.getStateAndHelpers() | ||
const Renderer = this.props.children | ||
return <Renderer {...props}/> | ||
return this.props.children(props); | ||
} | ||
@@ -203,0 +202,0 @@ } |
@@ -42,15 +42,12 @@ import React from 'react' | ||
const { intervalText, interval, intervalRenderer, headerData } = this.props | ||
const Renderer = intervalRenderer | ||
if (Renderer) { | ||
return ( | ||
<Renderer | ||
getIntervalProps={this.getIntervalProps} | ||
intervalContext={{ | ||
interval, | ||
intervalText | ||
}} | ||
data={headerData} | ||
/> | ||
) | ||
} | ||
if (intervalRenderer) { | ||
return intervalRenderer({ | ||
getIntervalProps: this.getIntervalProps, | ||
intervalContext: { | ||
interval, | ||
intervalText | ||
}, | ||
data: headerData, | ||
}) | ||
}; | ||
@@ -57,0 +54,0 @@ return ( |
@@ -38,4 +38,3 @@ import React from 'react' | ||
const props = this.getStateAndHelpers() | ||
const Renderer = this.props.children | ||
return <Renderer {...props}/> | ||
return this.props.children(props); | ||
} | ||
@@ -42,0 +41,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
510593
9746