diff --git a/packages/kilo-vscode/webview-ui/src/App.tsx b/packages/kilo-vscode/webview-ui/src/App.tsx index 72a2e91b589..80a27d82201 100644 --- a/packages/kilo-vscode/webview-ui/src/App.tsx +++ b/packages/kilo-vscode/webview-ui/src/App.tsx @@ -215,6 +215,7 @@ const AppContent: Component = () => { profileData={server.profileData()} deviceAuth={server.deviceAuth()} onLogin={server.startLogin} + onBack={() => setCurrentView("newTask")} /> diff --git a/packages/kilo-vscode/webview-ui/src/components/ProfileView.tsx b/packages/kilo-vscode/webview-ui/src/components/ProfileView.tsx index 69adb90dfed..d9fca0682fe 100644 --- a/packages/kilo-vscode/webview-ui/src/components/ProfileView.tsx +++ b/packages/kilo-vscode/webview-ui/src/components/ProfileView.tsx @@ -1,6 +1,7 @@ import { Component, Show, createSignal, createMemo, createEffect, onMount } from "solid-js" import { Button } from "@kilocode/kilo-ui/button" import { Card } from "@kilocode/kilo-ui/card" +import { Icon } from "@kilocode/kilo-ui/icon" import { Select } from "@kilocode/kilo-ui/select" import { Tooltip } from "@kilocode/kilo-ui/tooltip" import { useVSCode } from "../context/vscode" @@ -14,6 +15,7 @@ export interface ProfileViewProps { profileData: ProfileData | null | undefined deviceAuth: DeviceAuthState onLogin: () => void + onBack?: () => void } const formatBalance = (amount: number): string => { @@ -97,26 +99,24 @@ const ProfileView: Component = (props) => { } return ( -
-

- {language.t("profile.title")} -

- +
+ > + + + +

{language.t("profile.title")}

+
+
= (props) => {
)} +
) }