Skip to content

Commit

Permalink
export DashboardSnapshotComponent
Browse files Browse the repository at this point in the history
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
  • Loading branch information
mufaddal7 committed Feb 7, 2022
1 parent 0d1e74c commit 5ca4246
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-birds-ring.md
@@ -0,0 +1,5 @@
---
'@backstage/plugin-newrelic-dashboard': patch
---

Export DashboardSnapshotComponent from new-relic-dashboard-plugin
1 change: 1 addition & 0 deletions plugins/newrelic-dashboard/src/index.ts
Expand Up @@ -17,5 +17,6 @@ export {
newRelicDashboardPlugin,
EntityNewRelicDashboardCard,
EntityNewRelicDashboardContent,
DashboardSnapshotComponent,
} from './plugin';
export { isNewRelicDashboardAvailable } from './Router';
12 changes: 12 additions & 0 deletions plugins/newrelic-dashboard/src/plugin.ts
Expand Up @@ -60,3 +60,15 @@ export const EntityNewRelicDashboardCard = newRelicDashboardPlugin.provide(
},
}),
);

export const DashboardSnapshotComponent = newRelicDashboardPlugin.provide(
createComponentExtension({
name: 'DashboardSnapshotComponent',
component: {
lazy: () =>
import(
'./components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot'
).then(m => m.DashboardSnapshot),
},
}),
);

0 comments on commit 5ca4246

Please sign in to comment.