Skip to content

Commit

Permalink
Fix people list selection
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 committed Oct 17, 2023
1 parent 08eb8b2 commit b728279
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-cups-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nostrudel": minor
---

Fix people list selection
25 changes: 8 additions & 17 deletions src/components/people-list-selection/people-list-selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,14 @@ export default function PeopleListSelection({
<MenuOptionGroup value={selected} onChange={handleSelect} type="radio">
{account && <MenuItemOption value="following">Following</MenuItemOption>}
{!hideGlobalOption && <MenuItemOption value="global">Global</MenuItemOption>}
{lists.length > 0 && (
<>
<MenuDivider />
{lists
.filter((l) => l.kind === PEOPLE_LIST_KIND)
.map((list) => (
<MenuItemOption
key={getEventCoordinate(list)}
value={getEventCoordinate(list)}
isTruncated
maxW="90vw"
>
{getListName(list)}
</MenuItemOption>
))}
</>
)}
{lists.length > 0 && <MenuDivider />}
{lists
.filter((l) => l.kind === PEOPLE_LIST_KIND)
.map((list) => (
<MenuItemOption key={getEventCoordinate(list)} value={getEventCoordinate(list)} isTruncated maxW="90vw">
{getListName(list)}
</MenuItemOption>
))}
</MenuOptionGroup>
{favoriteLists.length > 0 && (
<>
Expand Down

0 comments on commit b728279

Please sign in to comment.