Fix: dont try to detect link/label mismatches on post meta
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user