Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Enhancement: isAWSProtonServiceAvailable signature should return Boolean #106

Open
niallthomson opened this issue Jul 7, 2022 · 0 comments

Comments

@niallthomson
Copy link
Contributor

Currently the isAWSProtonServiceAvailable utility function ends up returning a string value, which means its necessary to do this in the most common use-case:

<EntitySwitch.Case if={e => Boolean(isAWSProtonServiceAvailable(e))}>

The function should return a Boolean to make its usage more convenient and follow the pattern of other similar Backstage utility functions like isGithubActionsAvailable (see GitHub Actions plugin):

<EntitySwitch.Case if={isAWSProtonServiceAvailable}>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant