dedupe date parsing (#6267)
This commit is contained in:
@@ -49,6 +49,8 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
precacheProfile(queryClient, opts.author)
|
precacheProfile(queryClient, opts.author)
|
||||||
}, [queryClient, opts.author])
|
}, [queryClient, opts.author])
|
||||||
|
|
||||||
|
const timestampLabel = niceDate(i18n, opts.timestamp)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
@@ -115,8 +117,8 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
{({timeElapsed}) => (
|
{({timeElapsed}) => (
|
||||||
<WebOnlyInlineLinkText
|
<WebOnlyInlineLinkText
|
||||||
to={opts.postHref}
|
to={opts.postHref}
|
||||||
label={niceDate(i18n, opts.timestamp)}
|
label={timestampLabel}
|
||||||
title={niceDate(i18n, opts.timestamp)}
|
title={timestampLabel}
|
||||||
disableMismatchWarning
|
disableMismatchWarning
|
||||||
disableUnderline
|
disableUnderline
|
||||||
onPress={onBeforePressPost}
|
onPress={onBeforePressPost}
|
||||||
|
|||||||
Reference in New Issue
Block a user