Skip to content

Commit 368be20

Browse files
committed
Clean up
1 parent e8bd6f6 commit 368be20

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

apps/web/src/app/project/[id]/_components/right-panel/chat/controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const ChatControls = observer(() => {
2222
size={'icon'}
2323
className="p-2 w-fit h-fit hover:bg-background-onlook"
2424
onClick={handleNewChat}
25-
disabled={editorEngine.chat?.isWaiting || true}
25+
disabled={editorEngine.chat?.isWaiting || false}
2626
>
2727
<Icons.Plus />
2828
</Button>

apps/web/src/app/project/[id]/_components/right-panel/chat/panel-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const ChatPanelDropdown = ({ children }: { children: React.ReactNode }) =
2020

2121
const updateChatSettings = (e: React.MouseEvent, settings: Partial<ChatSettings>) => {
2222
e.preventDefault();
23-
userManager.settings.updateChat(settings);
23+
// userManager.settings.updateChat(settings);
2424
};
2525

2626
return (

apps/web/src/app/project/[id]/_components/right-panel/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export const RightPanel = observer(() => {
3737
const [isOpen, setIsOpen] = useState(true);
3838
const selectedTab = editorEngine.state.editorPanelTab;
3939
const editPanelWidth = EDIT_PANEL_WIDTHS[selectedTab];
40-
const [isChatHistoryOpen, setIsChatHistoryOpen] = useState(false);
41-
4240

4341
function renderEmptyState() {
4442
return (

0 commit comments

Comments
 (0)