cronofy-elements
Advanced tools
Comparing version 1.15.0 to 1.15.1
{ | ||
"name": "cronofy-elements", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"description": "Fast track scheduling with Cronofy's embeddable UI Elements", | ||
@@ -5,0 +5,0 @@ "main": "build/npm/CronofyElements.js", |
@@ -309,3 +309,3 @@ import React, { useState, useEffect } from "react"; | ||
const slotHeightCalc = calculateSlotHeight(limits); | ||
setTheme({ ...theme, slotHeightCalc }); | ||
setTheme(t => ({ ...t, slotHeightCalc })); | ||
if (!objectIsEmpty(rawData)) { | ||
@@ -312,0 +312,0 @@ setStatus({ |
@@ -118,3 +118,6 @@ import React, { useContext, useState, useEffect } from "react"; | ||
if (columnWidth != theme.sizes.columnWidth) { | ||
setTheme({ ...theme, sizes: { ...theme.sizes, columnWidth } }); | ||
setTheme(t => ({ | ||
...t, | ||
sizes: { ...t.sizes, columnWidth } | ||
})); | ||
} | ||
@@ -125,3 +128,2 @@ } | ||
useEffect(() => { | ||
calculateColumnWidth(); | ||
if (!status.multiSelect) { | ||
@@ -131,2 +133,3 @@ setSelectedSlots({}); | ||
}, [slots]); | ||
useEffect(() => { | ||
@@ -180,3 +183,3 @@ setSelectedSlots({}); | ||
left: ${hover.position.x * | ||
theme.sizes.columnWidth}px; | ||
theme.sizes.columnWidth}px; | ||
`} | ||
@@ -215,3 +218,3 @@ className={`${theme.prefix}__hover-positioner ${theme.prefix}__hover-positioner--main`} | ||
left: ${hover.position.x * | ||
theme.sizes.columnWidth}px; | ||
theme.sizes.columnWidth}px; | ||
width: ${theme.sizes.columnWidth}px; | ||
@@ -218,0 +221,0 @@ height: ${hoverHeight}px; |
Sorry, the diff of this file is too big to display
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
2482976
22010