From f4d4a176e0d37289ddd35e87ba4648626639db59 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 25 Jun 2024 18:18:12 -0500 Subject: [PATCH] Add back list purpose logic --- src/components/ListCard.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/ListCard.tsx b/src/components/ListCard.tsx index c388c310f8..737281ca2c 100644 --- a/src/components/ListCard.tsx +++ b/src/components/ListCard.tsx @@ -39,7 +39,11 @@ export function Default(props: Props) {
- + {showPinButton && }
@@ -73,9 +77,11 @@ export function Link({ export function TitleAndByline({ title, creator, + purpose, }: { title: string creator?: AppBskyActorDefs.ProfileViewBasic + purpose: AppBskyGraphDefs.ListView['purpose'] }) { const t = useTheme() @@ -88,7 +94,13 @@ export function TitleAndByline({ - List by {sanitizeHandle(creator.handle, '@')} + {purpose === 'app.bsky.graph.defs#curatelist' ? ( + List by {sanitizeHandle(creator.handle, '@')} + ) : ( + + Moderation list by {sanitizeHandle(creator.handle, '@')} + + )} )}