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
This commit is contained in:
KevIsDev 2025-04-30 02:11:54 +01:00
parent a83f864fa1
commit f430443aef
2 changed files with 0 additions and 21 deletions

View File

@ -21,14 +21,6 @@ const FrameworkLink: React.FC<FrameworkLinkProps> = ({ 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 (
<div className="flex flex-col items-center gap-4">
<span className="text-sm text-gray-500">or start a blank app with your favorite stack</span>

View File

@ -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 =