Remove all links from post meta to ensure taps are more consistent

This commit is contained in:
Paul Frazee 2023-01-18 13:10:08 -06:00
parent 6a01e0529b
commit 302acaccb6
4 changed files with 16 additions and 35 deletions

View file

@ -1,12 +1,10 @@
import React from 'react'
import {Platform, StyleSheet, View} from 'react-native'
import {Link} from '../util/Link'
import {Text} from './text/Text'
import {ago} from '../../../lib/strings'
import {usePalette} from '../../lib/hooks/usePalette'
interface PostMetaOpts {
authorHref: string
authorHandle: string
authorDisplayName: string | undefined
timestamp: string
@ -36,10 +34,7 @@ export function PostMeta(opts: PostMetaOpts) {
return (
<View style={styles.meta}>
<Link
style={[styles.metaItem, styles.maxWidth]}
href={opts.authorHref}
title={opts.authorHandle}>
<View style={[styles.metaItem, styles.maxWidth]}>
<Text type="lg-bold" style={[pal.text]} numberOfLines={1}>
{displayName}
{handle ? (
@ -48,7 +43,7 @@ export function PostMeta(opts: PostMetaOpts) {
</Text>
) : undefined}
</Text>
</Link>
</View>
<Text type="md" style={[styles.metaItem, pal.textLight]}>
&middot; {ago(opts.timestamp)}
</Text>