@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.mjs CHANGED
@@ -1554,8 +1554,10 @@ var CustomThemeProvider = ({ children }) => {
1554
1554
  if (isEmbedded) return;
1555
1555
  if (user && canModifyTheme) {
1556
1556
  const themeToUse = user.themePreference || "light";
1557
+ console.log("[ThemeContext] Loading user theme preference:", themeToUse, "User:", user);
1557
1558
  setCurrentTheme(themeToUse);
1558
1559
  } else {
1560
+ console.log("[ThemeContext] No user or cannot modify theme, using light. User:", user, "canModifyTheme:", canModifyTheme);
1559
1561
  setCurrentTheme("light");
1560
1562
  }
1561
1563
  }, [user, canModifyTheme, isEmbedded]);