Fix: dont try to detect link/label mismatches on post meta

This commit is contained in:
Paul Frazee
2024-03-10 13:16:48 -07:00
parent 6cc61bf8e2
commit a180788038
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -280,6 +280,7 @@ interface TextLinkOnWebOnlyProps extends TextProps {
accessibilityHint?: string accessibilityHint?: string
title?: string title?: string
navigationAction?: 'push' | 'replace' | 'navigate' navigationAction?: 'push' | 'replace' | 'navigate'
disableMismatchWarning?: boolean
onPointerEnter?: () => void onPointerEnter?: () => void
} }
export const TextLinkOnWebOnly = memo(function DesktopWebTextLink({ export const TextLinkOnWebOnly = memo(function DesktopWebTextLink({
@@ -291,6 +292,7 @@ export const TextLinkOnWebOnly = memo(function DesktopWebTextLink({
numberOfLines, numberOfLines,
lineHeight, lineHeight,
navigationAction, navigationAction,
disableMismatchWarning,
...props ...props
}: TextLinkOnWebOnlyProps) { }: TextLinkOnWebOnlyProps) {
if (isWeb) { if (isWeb) {
@@ -305,6 +307,7 @@ export const TextLinkOnWebOnly = memo(function DesktopWebTextLink({
lineHeight={lineHeight} lineHeight={lineHeight}
title={props.title} title={props.title}
navigationAction={navigationAction} navigationAction={navigationAction}
disableMismatchWarning={disableMismatchWarning}
{...props} {...props}
/> />
) )
+1
View File
@@ -56,6 +56,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
style={[pal.text, opts.displayNameStyle]} style={[pal.text, opts.displayNameStyle]}
numberOfLines={1} numberOfLines={1}
lineHeight={1.2} lineHeight={1.2}
disableMismatchWarning
text={ text={
<> <>
{sanitizeDisplayName( {sanitizeDisplayName(