cronofy-elements
Advanced tools
Comparing version 1.13.0 to 1.13.1
{ | ||
"name": "cronofy-elements", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "Fast track scheduling with Cronofy's embeddable UI Elements", | ||
@@ -5,0 +5,0 @@ "main": "build/npm/CronofyElements.js", |
@@ -27,2 +27,3 @@ import React, { useState, useEffect } from "react"; | ||
export const AccountContext = React.createContext(); | ||
export const LoggingContext = React.createContext(); | ||
@@ -307,3 +308,7 @@ export const ExtrasContext = React.createContext(); | ||
> | ||
<Week /> | ||
<AccountContext.Provider | ||
value={account} | ||
> | ||
<Week /> | ||
</AccountContext.Provider> | ||
</SlotsContext.Provider> | ||
@@ -310,0 +315,0 @@ </StaticSlotsContext.Provider> |
@@ -5,2 +5,3 @@ import React, { useContext } from "react"; | ||
import { | ||
AccountContext, | ||
SlotsContext, | ||
@@ -18,2 +19,3 @@ StatusContext, | ||
const Slots = () => { | ||
const account = useContext(AccountContext); | ||
const { slots, setSlots } = useContext(SlotsContext); | ||
@@ -41,3 +43,3 @@ const [drag, setDrag] = useContext(DragContext); | ||
}, | ||
availability_rule: newRules | ||
availability_rule: { ...account, weekly_periods: newRules } | ||
}; | ||
@@ -44,0 +46,0 @@ status.ruleSaved(callbackContent); |
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
2471478
21768