mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-27 18:22:02 +01:00
Fix people list selection
This commit is contained in:
parent
08eb8b2c5a
commit
4c0d10fdf4
5
.changeset/afraid-cups-greet.md
Normal file
5
.changeset/afraid-cups-greet.md
Normal file
@ -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 && (
|
||||
<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user