fix: lint & typos

This commit is contained in:
Ivan Shmidt
2020-09-07 22:18:10 +02:00
parent f3acee2537
commit 37e72cf457
4 changed files with 36 additions and 4 deletions
@@ -15,7 +15,7 @@
*/
import {
Router as GitHubActionsRouter,
isPluginApplicableToEntity as isGitHubActionsAvaiable,
isPluginApplicableToEntity as isGitHubActionsAvailable,
} from '@backstage/plugin-github-actions';
import {
Router as CircleCIRouter,
@@ -38,7 +38,7 @@ const CICDSwitcher = ({ entity }: { entity: Entity }) => {
// This component is just an example of how you can implement your company's logic in entity page.
// You can for example enforce that all components of type 'service' should use GitHubActions
switch (true) {
case isGitHubActionsAvaiable(entity):
case isGitHubActionsAvailable(entity):
return <GitHubActionsRouter entity={entity} />;
case isCircleCIAvailable(entity):
return <CircleCIRouter entity={entity} />;