From 1a407864c550c80ce88315e047588c6d143bd59c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 25 Jun 2024 18:14:39 -0500 Subject: [PATCH] Export FeedCard.Action and optionally include in ListCard --- src/components/ListCard.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/ListCard.tsx b/src/components/ListCard.tsx index 5dfe320564..c388c310f8 100644 --- a/src/components/ListCard.tsx +++ b/src/components/ListCard.tsx @@ -8,7 +8,7 @@ import {sanitizeHandle} from 'lib/strings/handles' import {precacheList} from 'state/queries/feed' import {useTheme} from '#/alf' import {atoms as a} from '#/alf' -import {Avatar, Description, Header, Outer} from '#/components/FeedCard' +import {Action, Avatar, Description, Header, Outer} from '#/components/FeedCard' import {Link as InternalLink, LinkProps} from '#/components/Link' import {Text} from '#/components/Typography' @@ -18,24 +18,29 @@ import {Text} from '#/components/Typography' */ export { + Action, + Avatar, AvatarPlaceholder, + Description, + Header, + Outer, TitleAndBylinePlaceholder, } from '#/components/FeedCard' -export {Avatar, Description, Header, Outer} - type Props = { view: AppBskyGraphDefs.ListView + showPinButton?: boolean } export function Default(props: Props) { - const {view} = props + const {view, showPinButton} = props return (
+ {showPinButton && }