feat: update Makelore modules and conversations
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { OpencodeChatPanel } from './OpencodeChatPanel';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
function getNavigationDraft(state: unknown): string | undefined {
|
||||
if (!state || typeof state !== 'object') return undefined;
|
||||
@@ -16,11 +17,12 @@ function getNavigationDraftFromHistory(): string | undefined {
|
||||
}
|
||||
|
||||
export function Chat() {
|
||||
const navigate = useNavigate();
|
||||
const navigationDraft = getNavigationDraftFromHistory();
|
||||
|
||||
return (
|
||||
<div data-testid="chat-operation-page" className="flex h-[calc(100%_+_3rem)] min-h-0 -m-6 bg-background">
|
||||
<OpencodeChatPanel variant="main" navigationDraft={navigationDraft} />
|
||||
<div data-testid="chat-operation-page" className="flex h-[calc(100%_+_3rem)] min-h-0 -m-6 overflow-hidden bg-background">
|
||||
<OpencodeChatPanel variant="main" navigationDraft={navigationDraft} onOpenProjectSettings={() => navigate('/project-config')} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user