mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Removes navigate-to-account click handler
This commit is contained in:
parent
01b368c115
commit
5871cce9d3
2 changed files with 3 additions and 18 deletions
|
|
@ -4,15 +4,10 @@ import { cn } from "@src/lib/utils"
|
|||
|
||||
interface CloudNotificationBannerProps {
|
||||
onDismiss: () => void
|
||||
onNavigateToAccount: () => void
|
||||
className?: string
|
||||
}
|
||||
|
||||
export const CloudNotificationBanner = ({
|
||||
onDismiss,
|
||||
onNavigateToAccount,
|
||||
className,
|
||||
}: CloudNotificationBannerProps) => {
|
||||
export const CloudNotificationBanner = ({ onDismiss, className }: CloudNotificationBannerProps) => {
|
||||
const { t } = useTranslation()
|
||||
|
||||
const handleDismiss = () => {
|
||||
|
|
@ -20,7 +15,6 @@ export const CloudNotificationBanner = ({
|
|||
}
|
||||
|
||||
const handleClick = () => {
|
||||
onNavigateToAccount()
|
||||
handleDismiss()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,10 +84,6 @@ const TaskHeader = ({
|
|||
setShowCloudNotification(false)
|
||||
}
|
||||
|
||||
const handleNavigateToAccount = () => {
|
||||
vscode.postMessage({ type: "switchTab", tab: "account" })
|
||||
}
|
||||
|
||||
const condenseButton = (
|
||||
<StandardTooltip content={t("chat:task.condenseContext")}>
|
||||
<button
|
||||
|
|
@ -203,7 +199,7 @@ const TaskHeader = ({
|
|||
<div className="flex flex-grow justify-end gap-1 pr-0">
|
||||
<StandardTooltip content="Continue in Cloud from anywhere">
|
||||
<button
|
||||
onClick={() => console.log("Implement me")}
|
||||
onClick={() => vscode.postMessage({ type: "switchTab", tab: "account" })}
|
||||
className="shrink-0 min-h-[20px] min-w-[20px] p-[2px] cursor-pointer opacity-85 hover:opacity-100 bg-transparent border-none rounded-md">
|
||||
<Router size={14} />
|
||||
</button>
|
||||
|
|
@ -346,12 +342,7 @@ const TaskHeader = ({
|
|||
</div>
|
||||
|
||||
{/* Cloud notification banner */}
|
||||
{showCloudNotification && (
|
||||
<CloudNotificationBanner
|
||||
onDismiss={handleDismissCloudNotification}
|
||||
onNavigateToAccount={handleNavigateToAccount}
|
||||
/>
|
||||
)}
|
||||
{showCloudNotification && <CloudNotificationBanner onDismiss={handleDismissCloudNotification} />}
|
||||
|
||||
<TodoListDisplay todos={todos ?? (task as any)?.tool?.todos ?? []} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue