@propknot/shared-ui 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1652,7 +1652,7 @@ var CustomThemeProvider = ({ children }) => {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
return (user == null ? void 0 : user.preferredBrandingColor) || 0;
|
|
1654
1654
|
};
|
|
1655
|
-
const effectiveTheme = user ? currentTheme : "light";
|
|
1655
|
+
const effectiveTheme = user || isEmbedded ? currentTheme : "light";
|
|
1656
1656
|
const themeObject = effectiveTheme === "dark" ? darkTheme : lightTheme;
|
|
1657
1657
|
const isDarkMode = effectiveTheme === "dark";
|
|
1658
1658
|
const effectiveBrandingColor = getEffectiveBrandingColor();
|