From c653a174f4bf31c5e3288b7220b9708cf92d0ed0 Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 25 Dec 2025 08:44:26 +0700 Subject: [PATCH] Remove debug logging from Layout component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove useEffect that logged branding data to console - Remove unused useEffect import - Keep mobile header structure (already correct) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/components/Layout.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index b4be7f2..151de3a 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,4 +1,4 @@ -import { ReactNode, useState, useEffect } from 'react'; +import { ReactNode, useState } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { useAuth } from '@/hooks/useAuth'; import { useCart } from '@/contexts/CartContext'; @@ -23,12 +23,6 @@ export function Layout({ children }: { children: ReactNode }) { const brandName = branding.brand_name || 'LearnHub'; const logoUrl = branding.brand_logo_url; - // Debug: log branding data - useEffect(() => { - console.log('Layout - branding data:', branding); - console.log('Layout - brandName:', brandName); - }, [branding, brandName]); - return (