chore(ui): remove branding debug logs from frontend contexts
This commit is contained in:
@@ -29,7 +29,6 @@ export const BrandingProvider: React.FC<{ children: React.ReactNode }> = ({ chil
|
|||||||
try {
|
try {
|
||||||
const data = await lmsApi.getBranding();
|
const data = await lmsApi.getBranding();
|
||||||
setBranding(data);
|
setBranding(data);
|
||||||
console.log('Branding loaded in Experience:', data);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to load branding', error);
|
console.error('Failed to load branding', error);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -42,7 +41,6 @@ export const BrandingProvider: React.FC<{ children: React.ReactNode }> = ({ chil
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!branding) return;
|
if (!branding) return;
|
||||||
console.log('Applying branding in Experience for path:', pathname);
|
|
||||||
|
|
||||||
// Apply CSS variables
|
// Apply CSS variables
|
||||||
if (branding.primary_color) {
|
if (branding.primary_color) {
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ export const BrandingProvider: React.FC<{ children: React.ReactNode }> = ({ chil
|
|||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
setBranding(orgData);
|
setBranding(orgData);
|
||||||
console.log('Branding loaded in Studio:', orgData);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to load branding', error);
|
console.error('Failed to load branding', error);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -60,7 +59,6 @@ export const BrandingProvider: React.FC<{ children: React.ReactNode }> = ({ chil
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!branding) return;
|
if (!branding) return;
|
||||||
console.log('Applying branding in Studio for path:', pathname);
|
|
||||||
|
|
||||||
// Apply CSS variables
|
// Apply CSS variables
|
||||||
if (branding.primary_color) {
|
if (branding.primary_color) {
|
||||||
|
|||||||
Reference in New Issue
Block a user