Skip to content

Commit

Permalink
refactor(logging): comment out console logs in AskPanel and useToolPr…
Browse files Browse the repository at this point in the history
…eview

- Removed console log statements in AskPanel and useToolPreview to clean up the code and improve performance.
- This change enhances the overall readability and maintainability of the components without affecting functionality.
  • Loading branch information
crazygo committed Jan 15, 2025
1 parent 1c3510a commit cd0d51f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ask-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function AskPanel(props: AskPanelProps) {
const [isSystemPromptDropdownOpen, setIsSystemPromptDropdownOpen] = useState(false);

const showToolDropdown = () => {
console.log('isToolDropdownOpen = ' + isToolDropdownOpen, 'set to true');
// console.log('isToolDropdownOpen = ' + isToolDropdownOpen, 'set to true');
setIsToolDropdownOpen(true);
setIsQuoteDropdownOpen(false);
setIsModelDropdownOpen(false);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/hooks/useToolPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function useToolPreview() {
// Calculate the relative position between the menu item and dropdown
const relativeY = buttonRect.top - dropdownRect.top;

console.log('buttonRect', buttonRect, 'dropdownRect', dropdownRect);
// console.log('buttonRect', buttonRect, 'dropdownRect', dropdownRect);

setPreviewPos({
x: dropdownRect.width,
Expand Down

0 comments on commit cd0d51f

Please sign in to comment.