@@ -6,6 +6,7 @@ import { type ProviderSettings, type ModelInfo, BEDROCK_REGIONS, BEDROCK_1M_CONT
66
77import { useAppTranslation } from "@src/i18n/TranslationContext"
88import { Select , SelectContent , SelectItem , SelectTrigger , SelectValue , StandardTooltip } from "@src/components/ui"
9+ import { PasswordInputField } from "@src/components/ui/password-input"
910
1011import { inputEventTransform , noTransform } from "../transforms"
1112
@@ -77,14 +78,12 @@ export const Bedrock = ({ apiConfiguration, setApiConfigurationField, selectedMo
7778 { t ( "settings:providers.apiKeyStorageNotice" ) }
7879 </ div >
7980 { apiConfiguration ?. awsUseApiKey ? (
80- < VSCodeTextField
81+ < PasswordInputField
8182 value = { apiConfiguration ?. awsApiKey || "" }
82- type = "password"
83- onInput = { handleInputChange ( "awsApiKey" ) }
83+ onChange = { handleInputChange ( "awsApiKey" ) }
8484 placeholder = { t ( "settings:placeholders.apiKey" ) }
85- className = "w-full" >
86- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsApiKey" ) } </ label >
87- </ VSCodeTextField >
85+ label = { t ( "settings:providers.awsApiKey" ) }
86+ className = "w-full" > </ PasswordInputField >
8887 ) : apiConfiguration ?. awsUseProfile ? (
8988 < VSCodeTextField
9089 value = { apiConfiguration ?. awsProfile || "" }
@@ -95,30 +94,24 @@ export const Bedrock = ({ apiConfiguration, setApiConfigurationField, selectedMo
9594 </ VSCodeTextField >
9695 ) : (
9796 < >
98- < VSCodeTextField
97+ < PasswordInputField
9998 value = { apiConfiguration ?. awsAccessKey || "" }
100- type = "password"
101- onInput = { handleInputChange ( "awsAccessKey" ) }
99+ onChange = { handleInputChange ( "awsAccessKey" ) }
102100 placeholder = { t ( "settings:placeholders.accessKey" ) }
103- className = "w-full" >
104- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsAccessKey" ) } </ label >
105- </ VSCodeTextField >
106- < VSCodeTextField
101+ label = { t ( "settings:providers.awsAccessKey" ) }
102+ className = "w-full" > </ PasswordInputField >
103+ < PasswordInputField
107104 value = { apiConfiguration ?. awsSecretKey || "" }
108- type = "password"
109- onInput = { handleInputChange ( "awsSecretKey" ) }
105+ onChange = { handleInputChange ( "awsSecretKey" ) }
110106 placeholder = { t ( "settings:placeholders.secretKey" ) }
111- className = "w-full" >
112- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsSecretKey" ) } </ label >
113- </ VSCodeTextField >
114- < VSCodeTextField
107+ label = { t ( "settings:providers.awsSecretKey" ) }
108+ className = "w-full" > </ PasswordInputField >
109+ < PasswordInputField
115110 value = { apiConfiguration ?. awsSessionToken || "" }
116- type = "password"
117- onInput = { handleInputChange ( "awsSessionToken" ) }
111+ onChange = { handleInputChange ( "awsSessionToken" ) }
118112 placeholder = { t ( "settings:placeholders.sessionToken" ) }
119- className = "w-full" >
120- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsSessionToken" ) } </ label >
121- </ VSCodeTextField >
113+ label = { t ( "settings:providers.awsSessionToken" ) }
114+ className = "w-full" > </ PasswordInputField >
122115 </ >
123116 ) }
124117 < div >
0 commit comments