Fix people list selection

This commit is contained in:
hzrd149 2023-10-17 08:13:51 -05:00
parent 08eb8b2c5a
commit 4c0d10fdf4
2 changed files with 13 additions and 17 deletions
.changeset
src/components/people-list-selection

@ -0,0 +1,5 @@
---
"nostrudel": patch
---
Fix people list selection

@ -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 && (
<>