diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-02-12 19:17:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 19:17:58 +0000 |
commit | 521a764d4f896518af7f668e2d196b720461ec13 (patch) | |
tree | 32ad47291fc91141518dbaccd5e9a78ce71c27f3 /src/components/ListCard.tsx | |
parent | 7d694f605a8ba73b149b7de92892a915d339cbc7 (diff) | |
download | voidsky-521a764d4f896518af7f668e2d196b720461ec13.tar.zst |
fix quote & feed padding not being pressable (#7694)
Diffstat (limited to 'src/components/ListCard.tsx')
-rw-r--r-- | src/components/ListCard.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/ListCard.tsx b/src/components/ListCard.tsx index ed5838fb0..9061648e0 100644 --- a/src/components/ListCard.tsx +++ b/src/components/ListCard.tsx @@ -26,6 +26,7 @@ import { import {Link as InternalLink, LinkProps} from '#/components/Link' import * as Hider from '#/components/moderation/Hider' import {Text} from '#/components/Typography' +import {ButtonProps} from './Button' /* * This component is based on `FeedCard` and is tightly coupled with that @@ -48,7 +49,7 @@ const MODLIST = 'app.bsky.graph.defs#modlist' type Props = { view: AppBskyGraphDefs.ListView showPinButton?: boolean -} +} & Omit<LinkProps, 'to' | 'label' | 'children'> export function Default(props: Props) { const {view, showPinButton} = props @@ -82,7 +83,7 @@ export function Link({ view, children, ...props -}: Props & Omit<LinkProps, 'to' | 'label'>) { +}: Props & Pick<ButtonProps, 'children'>) { const queryClient = useQueryClient() const href = React.useMemo(() => { |