fix: annotation missing text
This commit is contained in:
@@ -30,8 +30,7 @@ export const isPluginApplicableToEntity = (entity: Entity) =>
|
||||
export const Router = ({ entity }: { entity: Entity }) =>
|
||||
!isPluginApplicableToEntity(entity) ? (
|
||||
<WarningPanel title="CircleCI plugin:">
|
||||
`entity.metadata.annotations['{CIRCLECI_ANNOTATION}']` key is missing on
|
||||
the entity.
|
||||
<pre>{CIRCLECI_ANNOTATION}</pre> annotation is missing on the entity.
|
||||
</WarningPanel>
|
||||
) : (
|
||||
<Routes>
|
||||
|
||||
@@ -30,8 +30,8 @@ export const Router = ({ entity }: { entity: Entity }) =>
|
||||
// TODO(shmidt-i): move warning to a separate standardized component
|
||||
!isPluginApplicableToEntity(entity) ? (
|
||||
<WarningPanel title=" GitHubActions plugin:">
|
||||
`entity.metadata.annotations['
|
||||
{GITHUB_ACTIONS_ANNOTATION}']` key is missing on the entity.{' '}
|
||||
<pre>{GITHUB_ACTIONS_ANNOTATION}</pre> annotation is missing on the
|
||||
entity.
|
||||
</WarningPanel>
|
||||
) : (
|
||||
<Routes>
|
||||
|
||||
@@ -32,10 +32,7 @@ type Props = {
|
||||
export const Router = ({ entity }: Props) =>
|
||||
!isPluginApplicableToEntity(entity) ? (
|
||||
<WarningPanel title="Rollbar plugin:">
|
||||
<pre>
|
||||
entity.metadata.annotations['{ROLLBAR_ANNOTATION}']` key is missing on
|
||||
the entity.
|
||||
</pre>
|
||||
<pre>{ROLLBAR_ANNOTATION}</pre> annotation is missing on the entity.
|
||||
</WarningPanel>
|
||||
) : (
|
||||
<Routes>
|
||||
|
||||
Reference in New Issue
Block a user