From 551d57244743d62b827ed09e199e440cfc07f130 Mon Sep 17 00:00:00 2001 From: hram_wh Date: Thu, 3 Nov 2022 16:01:07 +0530 Subject: [PATCH] minor changes Signed-off-by: hram_wh --- .changeset/bright-pillows-build.md | 2 +- plugins/explore/README.md | 12 +++++++++++- .../ToolExplorerContent/ToolExplorerContent.tsx | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.changeset/bright-pillows-build.md b/.changeset/bright-pillows-build.md index 65517a6595..9939fddf42 100644 --- a/.changeset/bright-pillows-build.md +++ b/.changeset/bright-pillows-build.md @@ -2,4 +2,4 @@ '@backstage/plugin-explore': patch --- -Added ability to customize the explore plugin tools tab content +Added a section to explore plugin README that describes the customization of explore tools content. diff --git a/plugins/explore/README.md b/plugins/explore/README.md index b28fd8ceb6..7fa088ab9a 100644 --- a/plugins/explore/README.md +++ b/plugins/explore/README.md @@ -94,7 +94,17 @@ export const apis: AnyApiFactory[] = [ api: exploreToolsConfigRef, deps: {}, factory: () => ({ - /* pass the tools array */ + /* pass the tools array + i.e. tools = [ + { + title: 'New Relic', + description:'new relic plugin, + url: '/newrelic', + image: 'https://i.imgur.com/L37ikrX.jpg', + tags: ['newrelic', 'proxy', 'nerdGraph'], + }, + ] + */ }), }), diff --git a/plugins/explore/src/components/ToolExplorerContent/ToolExplorerContent.tsx b/plugins/explore/src/components/ToolExplorerContent/ToolExplorerContent.tsx index 92ba9b7b16..5404c67393 100644 --- a/plugins/explore/src/components/ToolExplorerContent/ToolExplorerContent.tsx +++ b/plugins/explore/src/components/ToolExplorerContent/ToolExplorerContent.tsx @@ -59,7 +59,7 @@ const Body = () => { return ( - {tools?.map((tool, index) => ( + {tools.map((tool, index) => ( ))}