improvement: display slug for aws regions

This commit is contained in:
Scott Wilson
2024-09-26 16:14:23 -07:00
parent c011d99b8b
commit 8495107849
3 changed files with 9 additions and 5 deletions
@@ -245,8 +245,8 @@ export default function AWSParameterStoreCreateIntegrationPage() {
className="w-full border border-mineshaft-500" className="w-full border border-mineshaft-500"
> >
{awsRegions.map((awsRegion) => ( {awsRegions.map((awsRegion) => (
<SelectItem value={awsRegion.slug} key={`flyio-environment-${awsRegion.slug}`}> <SelectItem value={awsRegion.slug} key={`aws-environment-${awsRegion.slug}`}>
{awsRegion.name} {awsRegion.name} <span className="text-mineshaft-400">{awsRegion.slug}</span>
</SelectItem> </SelectItem>
))} ))}
</Select> </Select>
@@ -267,8 +267,12 @@ export default function AWSSecretManagerCreateIntegrationPage() {
className="w-full border border-mineshaft-500" className="w-full border border-mineshaft-500"
> >
{awsRegions.map((awsRegion) => ( {awsRegions.map((awsRegion) => (
<SelectItem value={awsRegion.slug} key={`flyio-environment-${awsRegion.slug}`}> <SelectItem
{awsRegion.name} value={awsRegion.slug}
className="flex w-full justify-between"
key={`aws-environment-${awsRegion.slug}`}
>
{awsRegion.name} <span className="text-mineshaft-400">{awsRegion.slug}</span>
</SelectItem> </SelectItem>
))} ))}
</Select> </Select>
@@ -244,7 +244,7 @@ export const AwsKmsForm = ({ onCompleted, onCancel, kms }: Props) => {
> >
{AWS_REGIONS.map((awsRegion) => ( {AWS_REGIONS.map((awsRegion) => (
<SelectItem value={awsRegion.slug} key={`kms-aws-region-${awsRegion.slug}`}> <SelectItem value={awsRegion.slug} key={`kms-aws-region-${awsRegion.slug}`}>
{awsRegion.name} ({awsRegion.slug}) {awsRegion.name} <span className="text-mineshaft-400">{awsRegion.slug}</span>
</SelectItem> </SelectItem>
))} ))}
</Select> </Select>