@propknot/shared-ui 1.0.24 → 1.0.25
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 +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1619,8 +1619,10 @@ var CustomThemeProvider = ({ children }) => {
|
|
|
1619
1619
|
if (isEmbedded) return;
|
|
1620
1620
|
if (user && canModifyTheme) {
|
|
1621
1621
|
const themeToUse = user.themePreference || "light";
|
|
1622
|
+
console.log("[ThemeContext] Loading user theme preference:", themeToUse, "User:", user);
|
|
1622
1623
|
setCurrentTheme(themeToUse);
|
|
1623
1624
|
} else {
|
|
1625
|
+
console.log("[ThemeContext] No user or cannot modify theme, using light. User:", user, "canModifyTheme:", canModifyTheme);
|
|
1624
1626
|
setCurrentTheme("light");
|
|
1625
1627
|
}
|
|
1626
1628
|
}, [user, canModifyTheme, isEmbedded]);
|