Remove all links from post meta to ensure taps are more consistent
This commit is contained in:
parent
6a01e0529b
commit
302acaccb6
4 changed files with 16 additions and 35 deletions
|
@ -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]}>
|
||||
· {ago(opts.timestamp)}
|
||||
</Text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue