Theming shouldnt depend on plan now as everyone is pro now (#5976)
This commit is contained in:
1 parent
c1e23bfdc6
commit
3080b47aec
1 file changed
-9
@@ -14,7 +14,6 @@ declare global {
|
||||
embedStore: any;
|
||||
};
|
||||
CalComPageStatus: string;
|
||||
CalComPlan: string;
|
||||
isEmbed: () => boolean;
|
||||
resetEmbedStatus: () => void;
|
||||
getEmbedNamespace: () => string | null;
|
||||
@@ -252,14 +251,6 @@ export const methods = {
|
||||
log("Method: ui called", uiConfig);
|
||||
const stylesConfig = uiConfig.styles;
|
||||
|
||||
// In case where parent gives instructions before CalComPlan is set.
|
||||
// This is easily possible as React takes time to initialize and render components where this variable is set.
|
||||
if (!window?.CalComPlan) {
|
||||
return requestAnimationFrame(() => {
|
||||
style(uiConfig);
|
||||
});
|
||||
}
|
||||
|
||||
// body can't be styled using React state hook as it is generated by _document.tsx which doesn't support hooks.
|
||||
if (stylesConfig?.body?.background) {
|
||||
document.body.style.background = stylesConfig.body.background as string;
|
||||
|
||||
Reference in new issue
Block a user