diff --git a/packages/kilo-vscode/webview-ui/src/App.tsx b/packages/kilo-vscode/webview-ui/src/App.tsx index 1826be907..ec9845a42 100644 --- a/packages/kilo-vscode/webview-ui/src/App.tsx +++ b/packages/kilo-vscode/webview-ui/src/App.tsx @@ -171,6 +171,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 69adb90df..617c2b072 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,64 +99,61 @@ const ProfileView: Component = (props) => { } return ( -
-

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

- +
- - - -

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

- - - } - > - -
-
- } > - {(data) => ( + + + +

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

+
+
+ + +

+ {language.t("profile.notLoggedIn")} +

+ + + } + > + +
+
+ } + > + {(data) => (
{/* User header */} @@ -264,7 +263,8 @@ const ProfileView: Component = (props) => {
)} - + + ) }