From 264e204f02c013fb63bb2c9082d42df9906dc960 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 25 Feb 2021 17:39:20 +0100 Subject: [PATCH] catalog: make the external createComponent route optional, hiding the button if it is not set --- .../src/components/CatalogPage/CatalogPage.tsx | 18 ++++++++++-------- plugins/catalog/src/routes.ts | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index 327bc2e472..9190ae703e 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -167,14 +167,16 @@ const CatalogPageContents = () => { /> - + {createComponentLink && ( + + )} {showAddExampleEntities && (