From e603515ebac28e629d0c5846562cfef2a3cc79c5 Mon Sep 17 00:00:00 2001 From: mufaddal motiwala Date: Thu, 16 Dec 2021 11:07:57 +0530 Subject: [PATCH] removed the deprecated prop Signed-off-by: mufaddal motiwala --- plugins/newrelic-dashboard/src/Router.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/newrelic-dashboard/src/Router.tsx b/plugins/newrelic-dashboard/src/Router.tsx index 64d185defc..b3404db960 100644 --- a/plugins/newrelic-dashboard/src/Router.tsx +++ b/plugins/newrelic-dashboard/src/Router.tsx @@ -24,12 +24,7 @@ import { NEWRELIC_GUID } from './constants'; export const isNewRelicDashboardAvailable = (entity: Entity) => Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID]); -type Props = { - /** @deprecated The entity is now grabbed from context instead */ - entity?: Entity; -}; - -export const Router = (_props: Props) => { +export const Router = () => { const { entity } = useEntity(); if (isNewRelicDashboardAvailable(entity)) { @@ -40,7 +35,7 @@ export const Router = (_props: Props) => { <> );