From f430443aef6b42bdfa6713c25309ac802275af3c Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Wed, 30 Apr 2025 02:11:54 +0100 Subject: [PATCH] refactor: remove debug logging statements Clean up code by removing unnecessary debug logging statements in `StarterTemplates.tsx` and `useShortcuts.ts`. Making it easier to debug issues in console --- app/components/chat/StarterTemplates.tsx | 8 -------- app/lib/hooks/useShortcuts.ts | 13 ------------- 2 files changed, 21 deletions(-) diff --git a/app/components/chat/StarterTemplates.tsx b/app/components/chat/StarterTemplates.tsx index fa51961..0f46a60 100644 --- a/app/components/chat/StarterTemplates.tsx +++ b/app/components/chat/StarterTemplates.tsx @@ -21,14 +21,6 @@ const FrameworkLink: React.FC = ({ template }) => ( ); const StarterTemplates: React.FC = () => { - // Debug: Log available templates and their icons - React.useEffect(() => { - console.log( - 'Available templates:', - STARTER_TEMPLATES.map((t) => ({ name: t.name, icon: t.icon })), - ); - }, []); - return (
or start a blank app with your favorite stack diff --git a/app/lib/hooks/useShortcuts.ts b/app/lib/hooks/useShortcuts.ts index 447a97e..468cf0d 100644 --- a/app/lib/hooks/useShortcuts.ts +++ b/app/lib/hooks/useShortcuts.ts @@ -40,19 +40,6 @@ export function useShortcuts(): void { return; } - // Debug logging in development only - if (import.meta.env.DEV) { - console.log('Key pressed:', { - key: event.key, - code: event.code, - ctrlKey: event.ctrlKey, - shiftKey: event.shiftKey, - altKey: event.altKey, - metaKey: event.metaKey, - target: event.target, - }); - } - // Handle shortcuts for (const [name, shortcut] of Object.entries(shortcuts)) { const keyMatches =