fix quote & feed padding not being pressable (#7694)

This commit is contained in:
Samuel Newman
2025-02-12 19:17:58 +00:00
committed by GitHub
parent 7d694f605a
commit 521a764d4f
3 changed files with 12 additions and 47 deletions
+3 -2
View File
@@ -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(() => {