From e37cad2673d3782da7677c8170b9049d365b6b65 Mon Sep 17 00:00:00 2001 From: mufaddal motiwala Date: Sun, 19 Dec 2021 16:35:38 +0530 Subject: [PATCH] renamed NEWRELIC_GUID to NEWRELIC_GUID_ANNOTATION Signed-off-by: mufaddal motiwala --- plugins/newrelic-dashboard/src/Router.tsx | 6 +++--- plugins/newrelic-dashboard/src/constants.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/newrelic-dashboard/src/Router.tsx b/plugins/newrelic-dashboard/src/Router.tsx index b3404db960..2fbec661ab 100644 --- a/plugins/newrelic-dashboard/src/Router.tsx +++ b/plugins/newrelic-dashboard/src/Router.tsx @@ -19,10 +19,10 @@ import { MissingAnnotationEmptyState } from '@backstage/core-components'; import { Button } from '@material-ui/core'; import { NewRelicDashboard } from './components/NewRelicDashboard'; import { useEntity } from '@backstage/plugin-catalog-react'; -import { NEWRELIC_GUID } from './constants'; +import { NEWRELIC_GUID_ANNOTATION } from './constants'; export const isNewRelicDashboardAvailable = (entity: Entity) => - Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID]); + Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID_ANNOTATION]); export const Router = () => { const { entity } = useEntity(); @@ -33,7 +33,7 @@ export const Router = () => { return ( <> - + diff --git a/plugins/newrelic-dashboard/src/constants.ts b/plugins/newrelic-dashboard/src/constants.ts index fd83a72132..dd0dcff2d8 100644 --- a/plugins/newrelic-dashboard/src/constants.ts +++ b/plugins/newrelic-dashboard/src/constants.ts @@ -13,4 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export const NEWRELIC_GUID = 'newrelic.com/dashboard-guid'; +export const NEWRELIC_GUID_ANNOTATION = 'newrelic.com/dashboard-guid';