From 5cc4325bc6cd938549110e0c442fc22dfa128cf1 Mon Sep 17 00:00:00 2001 From: nicolethoen Date: Wed, 3 Jul 2024 16:06:32 -0400 Subject: [PATCH] tidy up --- packages/dev/src/CustomCatalog.tsx | 8 +++----- packages/module/src/catalog/QuickStartCatalog.tsx | 12 +++++------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/packages/dev/src/CustomCatalog.tsx b/packages/dev/src/CustomCatalog.tsx index 65a68f31..775a0179 100644 --- a/packages/dev/src/CustomCatalog.tsx +++ b/packages/dev/src/CustomCatalog.tsx @@ -23,6 +23,7 @@ import { Gallery, GalleryItem, PageSection, + Stack, Text, TextContent, ToolbarContent, @@ -85,7 +86,7 @@ export const CustomCatalog: React.FC = () => { const [bookmarked, setBookmarked] = React.useState([]); const CatalogWithSections = ( - <> + {bookmarked.length > 0 && (
@@ -210,10 +211,7 @@ export const CustomCatalog: React.FC = () => { })}
-
- -
- +
); const clearFilters = React.useCallback(() => { diff --git a/packages/module/src/catalog/QuickStartCatalog.tsx b/packages/module/src/catalog/QuickStartCatalog.tsx index b1146d17..fa76235f 100644 --- a/packages/module/src/catalog/QuickStartCatalog.tsx +++ b/packages/module/src/catalog/QuickStartCatalog.tsx @@ -23,13 +23,11 @@ const QuickStartCatalog: React.FC = ({ quickStarts }) => } = quickStart; return ( - - - + ); })}