mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
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:
parent
a83f864fa1
commit
f430443aef
@ -21,14 +21,6 @@ const FrameworkLink: React.FC<FrameworkLinkProps> = ({ template }) => (
|
|||||||
);
|
);
|
||||||
|
|
||||||
const StarterTemplates: React.FC = () => {
|
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 (
|
return (
|
||||||
<div className="flex flex-col items-center gap-4">
|
<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>
|
<span className="text-sm text-gray-500">or start a blank app with your favorite stack</span>
|
||||||
|
@ -40,19 +40,6 @@ export function useShortcuts(): void {
|
|||||||
return;
|
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
|
// Handle shortcuts
|
||||||
for (const [name, shortcut] of Object.entries(shortcuts)) {
|
for (const [name, shortcut] of Object.entries(shortcuts)) {
|
||||||
const keyMatches =
|
const keyMatches =
|
||||||
|
Loading…
Reference in New Issue
Block a user