@@ -7,10 +7,11 @@ import { vscode } from "@src/utils/vscode"
77
88type AccountViewProps = {
99 userInfo : CloudUserInfo | null
10+ isAuthenticated : boolean
1011 onDone : ( ) => void
1112}
1213
13- export const AccountView = ( { userInfo, onDone } : AccountViewProps ) => {
14+ export const AccountView = ( { userInfo, isAuthenticated , onDone } : AccountViewProps ) => {
1415 const { t } = useAppTranslation ( )
1516
1617 const rooLogoUri = ( window as any ) . IMAGES_BASE_URI + "/roo-logo.svg"
@@ -23,27 +24,29 @@ export const AccountView = ({ userInfo, onDone }: AccountViewProps) => {
2324 { t ( "settings:common.done" ) }
2425 </ VSCodeButton >
2526 </ div >
26- { userInfo ? (
27+ { isAuthenticated ? (
2728 < >
28- < div className = "flex flex-col items-center mb-6" >
29- < div className = "w-16 h-16 mb-3 rounded-full overflow-hidden" >
30- { userInfo ?. picture ? (
31- < img
32- src = { userInfo . picture }
33- alt = { t ( "account:profilePicture" ) }
34- className = "w-full h-full object-cover"
35- />
36- ) : (
37- < div className = "w-full h-full flex items-center justify-center bg-vscode-button-background text-vscode-button-foreground text-xl" >
38- { userInfo ?. name ?. charAt ( 0 ) || userInfo ?. email ?. charAt ( 0 ) || "?" }
39- </ div >
40- ) }
29+ { userInfo && (
30+ < div className = "flex flex-col items-center mb-6" >
31+ < div className = "w-16 h-16 mb-3 rounded-full overflow-hidden" >
32+ { userInfo ?. picture ? (
33+ < img
34+ src = { userInfo . picture }
35+ alt = { t ( "account:profilePicture" ) }
36+ className = "w-full h-full object-cover"
37+ />
38+ ) : (
39+ < div className = "w-full h-full flex items-center justify-center bg-vscode-button-background text-vscode-button-foreground text-xl" >
40+ { userInfo ?. name ?. charAt ( 0 ) || userInfo ?. email ?. charAt ( 0 ) || "?" }
41+ </ div >
42+ ) }
43+ </ div >
44+ < h2 className = "text-lg font-medium text-vscode-foreground mb-1" >
45+ { userInfo ?. name || t ( "account:unknownUser" ) }
46+ </ h2 >
47+ < p className = "text-sm text-vscode-descriptionForeground" > { userInfo ?. email || "" } </ p >
4148 </ div >
42- < h2 className = "text-lg font-medium text-vscode-foreground mb-1" >
43- { userInfo ?. name || t ( "account:unknownUser" ) }
44- </ h2 >
45- < p className = "text-sm text-vscode-descriptionForeground" > { userInfo ?. email || "" } </ p >
46- </ div >
49+ ) }
4750 < div className = "flex flex-col gap-2 mt-4" >
4851 < VSCodeButton
4952 appearance = "secondary"
0 commit comments