mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-20 21:12:38 +02:00
show listr list names
This commit is contained in:
@@ -11,7 +11,11 @@ export function getListName(event: NostrEvent) {
|
|||||||
if (event.kind === Kind.Contacts) return "Following";
|
if (event.kind === Kind.Contacts) return "Following";
|
||||||
if (event.kind === PIN_LIST_KIND) return "Pins";
|
if (event.kind === PIN_LIST_KIND) return "Pins";
|
||||||
if (event.kind === MUTE_LIST_KIND) return "Mute";
|
if (event.kind === MUTE_LIST_KIND) return "Mute";
|
||||||
return event.tags.find((t) => t[0] === "title")?.[1] || event.tags.find(isDTag)?.[1];
|
return (
|
||||||
|
event.tags.find((t) => t[0] === "name")?.[1] ||
|
||||||
|
event.tags.find((t) => t[0] === "title")?.[1] ||
|
||||||
|
event.tags.find(isDTag)?.[1]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isSpecialListKind(kind: number) {
|
export function isSpecialListKind(kind: number) {
|
||||||
|
@@ -64,8 +64,6 @@ export default function ListDetailsView() {
|
|||||||
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
|
|
||||||
<EventRelays event={event} />
|
|
||||||
|
|
||||||
<ListFeedButton list={event} />
|
<ListFeedButton list={event} />
|
||||||
{isAuthor && (
|
{isAuthor && (
|
||||||
<Button colorScheme="red" onClick={() => deleteEvent(event).then(() => navigate("/lists"))}>
|
<Button colorScheme="red" onClick={() => deleteEvent(event).then(() => navigate("/lists"))}>
|
||||||
|
Reference in New Issue
Block a user