refactor(nexus): drop unused useNavigate import from PersonalAssistant (phase 9)
Phase 9's Promote action no longer navigates away from the Assistant route (spec §5.7 says the user stays in Assistant after promotion), so useNavigate() and its ugly data-nav placeholder span are dead code. Drop them. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c3689f11b1
commit
e43d5ec220
1 changed files with 1 additions and 8 deletions
|
|
@ -10,7 +10,7 @@
|
|||
// This component preserves the existing streaming, voice, and handoff
|
||||
// wiring — Phase 9 rewires composition but not functionality.
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Navigate, useLocation, useNavigate, useParams, useSearchParams } from "@/lib/router";
|
||||
import { Navigate, useLocation, useParams, useSearchParams } from "@/lib/router";
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import type { ChatMessage, ChatConversationListResponse } from "@paperclipai/shared";
|
||||
import { useNexusMode } from "../hooks/useNexusMode";
|
||||
|
|
@ -37,7 +37,6 @@ export function PersonalAssistant() {
|
|||
const [searchParams, setSearchParams] = useSearchParams();
|
||||
const location = useLocation();
|
||||
const queryClient = useQueryClient();
|
||||
const navigate = useNavigate();
|
||||
const { pushToast } = useToast();
|
||||
const { activeConversationId, setActiveConversationId } = useChatPanel();
|
||||
|
||||
|
|
@ -303,12 +302,6 @@ export function PersonalAssistant() {
|
|||
onClose={() => setMemoryOpen(false)}
|
||||
companyId={companyId}
|
||||
/>
|
||||
|
||||
{/* Placeholder to silence unused-var warnings for navigate while we
|
||||
defer the promote transition to Phase 12. */}
|
||||
<span className="hidden" aria-hidden="true" data-nav={typeof navigate}>
|
||||
{null}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue