mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-22 15:19:47 +02:00
Fix people list selection
This commit is contained in:
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">
|
<MenuOptionGroup value={selected} onChange={handleSelect} type="radio">
|
||||||
{account && <MenuItemOption value="following">Following</MenuItemOption>}
|
{account && <MenuItemOption value="following">Following</MenuItemOption>}
|
||||||
{!hideGlobalOption && <MenuItemOption value="global">Global</MenuItemOption>}
|
{!hideGlobalOption && <MenuItemOption value="global">Global</MenuItemOption>}
|
||||||
{lists.length > 0 && (
|
{lists.length > 0 && <MenuDivider />}
|
||||||
<>
|
{lists
|
||||||
<MenuDivider />
|
.filter((l) => l.kind === PEOPLE_LIST_KIND)
|
||||||
{lists
|
.map((list) => (
|
||||||
.filter((l) => l.kind === PEOPLE_LIST_KIND)
|
<MenuItemOption key={getEventCoordinate(list)} value={getEventCoordinate(list)} isTruncated maxW="90vw">
|
||||||
.map((list) => (
|
{getListName(list)}
|
||||||
<MenuItemOption
|
</MenuItemOption>
|
||||||
key={getEventCoordinate(list)}
|
))}
|
||||||
value={getEventCoordinate(list)}
|
|
||||||
isTruncated
|
|
||||||
maxW="90vw"
|
|
||||||
>
|
|
||||||
{getListName(list)}
|
|
||||||
</MenuItemOption>
|
|
||||||
))}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</MenuOptionGroup>
|
</MenuOptionGroup>
|
||||||
{favoriteLists.length > 0 && (
|
{favoriteLists.length > 0 && (
|
||||||
<>
|
<>
|
||||||
|
Reference in New Issue
Block a user