@@ -6,6 +6,7 @@ import { type ProviderSettings, type ModelInfo, BEDROCK_REGIONS } from "@roo-cod
66
77import { useAppTranslation } from "@src/i18n/TranslationContext"
88import { Select , SelectContent , SelectItem , SelectTrigger , SelectValue , StandardTooltip } from "@src/components/ui"
9+ import { ApiKeyInput } from "@src/components/common/ApiKeyInput"
910
1011import { inputEventTransform , noTransform } from "../transforms"
1112
@@ -59,30 +60,24 @@ export const Bedrock = ({ apiConfiguration, setApiConfigurationField, selectedMo
5960 </ VSCodeTextField >
6061 ) : (
6162 < >
62- < VSCodeTextField
63+ < ApiKeyInput
6364 value = { apiConfiguration ?. awsAccessKey || "" }
64- type = "password"
6565 onInput = { handleInputChange ( "awsAccessKey" ) }
6666 placeholder = { t ( "settings:placeholders.accessKey" ) }
67- className = "w-full" >
68- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsAccessKey" ) } </ label >
69- </ VSCodeTextField >
70- < VSCodeTextField
67+ label = { t ( "settings:providers.awsAccessKey" ) }
68+ />
69+ < ApiKeyInput
7170 value = { apiConfiguration ?. awsSecretKey || "" }
72- type = "password"
7371 onInput = { handleInputChange ( "awsSecretKey" ) }
7472 placeholder = { t ( "settings:placeholders.secretKey" ) }
75- className = "w-full" >
76- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsSecretKey" ) } </ label >
77- </ VSCodeTextField >
78- < VSCodeTextField
73+ label = { t ( "settings:providers.awsSecretKey" ) }
74+ />
75+ < ApiKeyInput
7976 value = { apiConfiguration ?. awsSessionToken || "" }
80- type = "password"
8177 onInput = { handleInputChange ( "awsSessionToken" ) }
8278 placeholder = { t ( "settings:placeholders.sessionToken" ) }
83- className = "w-full" >
84- < label className = "block font-medium mb-1" > { t ( "settings:providers.awsSessionToken" ) } </ label >
85- </ VSCodeTextField >
79+ label = { t ( "settings:providers.awsSessionToken" ) }
80+ />
8681 </ >
8782 ) }
8883 < div >
0 commit comments