Fix: cssVars API not working correctly on Booker Timeslot selection page (#8296)

* Use a method out of react scope to set CSS vars as that doesnt need react

* Refactor
This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-04-18 12:53:46 +00:00
1 parent 585e36793a
commit 6fd64b2209
7 files changed
+89 -56

No files matched your search

+13
View File
@@ -20,6 +20,19 @@ function App() {
action: "*",
callback,
});
api("ui", {
cssVarsPerTheme: {
light: {
"cal-border-booker": "red",
"cal-border-booker-width": "20px",
},
dark: {
"cal-border-booker": "red",
"cal-border-booker-width": "5px",
},
},
});
});
return () => {
api.then((api) => {