Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@r365/react-calendar-timeline

Package Overview
Dependencies
Maintainers
8
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r365/react-calendar-timeline - npm Package Compare versions

Comparing version 0.26.7-beta.0 to 0.26.7-beta.1

3

lib/lib/headers/CustomHeader.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc