From 38c8c8a538084374fe917e63cba276b6a96e8093 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 19 Feb 2021 14:12:21 -0500 Subject: [PATCH] Changing loading and error msg --- .../ScaffolderPage/ScaffolderPage.tsx | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/plugins/scaffolder/src/components/ScaffolderPage/ScaffolderPage.tsx b/plugins/scaffolder/src/components/ScaffolderPage/ScaffolderPage.tsx index 74582d0762..4462c333b1 100644 --- a/plugins/scaffolder/src/components/ScaffolderPage/ScaffolderPage.tsx +++ b/plugins/scaffolder/src/components/ScaffolderPage/ScaffolderPage.tsx @@ -156,21 +156,24 @@ export const ScaffolderPageContents = () => {
- {!matchingEntities && loading && } - {matchingEntities && !matchingEntities.length && ( - - Shoot! Looks like you don't have any templates. Check out the - documentation{' '} - - here! - - - )} + + {loading && } + {error && ( {error.message} )} + + {!error && !loading && matchingEntities && !matchingEntities.length && ( + + No templates found that match your filter. Learn more about{' '} + + adding templates + . + + )} + {matchingEntities && matchingEntities?.length > 0 &&