Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Jul 3, 2024
1 parent 4adb513 commit 5cc4325
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions packages/dev/src/CustomCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
Gallery,
GalleryItem,
PageSection,
Stack,
Text,
TextContent,
ToolbarContent,
Expand Down Expand Up @@ -85,7 +86,7 @@ export const CustomCatalog: React.FC = () => {
const [bookmarked, setBookmarked] = React.useState<string[]>([]);

const CatalogWithSections = (
<>
<Stack hasGutter>
{bookmarked.length > 0 && (
<div>
<TextContent>
Expand Down Expand Up @@ -210,10 +211,7 @@ export const CustomCatalog: React.FC = () => {
})}
</Gallery>
</div>
<div>
<Divider />
</div>
</>
</Stack>
);

const clearFilters = React.useCallback(() => {
Expand Down
12 changes: 5 additions & 7 deletions packages/module/src/catalog/QuickStartCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ const QuickStartCatalog: React.FC<QuickStartCatalogProps> = ({ quickStarts }) =>
} = quickStart;

return (
<GalleryItem key={id}>
<QuickStartTile
quickStart={quickStart}
isActive={id === activeQuickStartID}
status={getQuickStartStatus(allQuickStartStates, id)}
/>
</GalleryItem>
<QuickStartTile
quickStart={quickStart}
isActive={id === activeQuickStartID}
status={getQuickStartStatus(allQuickStartStates, id)}
/>
);
})}
</Gallery>
Expand Down

0 comments on commit 5cc4325

Please sign in to comment.