Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Show the number of packages to install under each source
Browse files Browse the repository at this point in the history
  • Loading branch information
ayltai committed Sep 22, 2022
1 parent 6b37155 commit c89d6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/ItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ItemList = ({
{SECTIONS.filter(section => sections[SECTIONS.indexOf(section)].length > 0).map(section => (
<li key={section}>
<ul>
<ListSubheader>{section}</ListSubheader>
<ListSubheader>{`${section} (${sections[SECTIONS.indexOf(section)].length})`}</ListSubheader>
{sections[SECTIONS.indexOf(section)].map(item => (
<ListItem key={item.id}>
<ListItemText primary={item.name} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`<ItemList /> renders correctly 1`] = `
<li
class="MuiListSubheader-root MuiListSubheader-gutters MuiListSubheader-sticky css-uob957-MuiListSubheader-root"
>
Tweak
Tweak (1)
</li>
<li
class="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-1vnt5zy-MuiListItem-root"
Expand Down

0 comments on commit c89d6ea

Please sign in to comment.