diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-02 23:29:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 23:29:16 -0500 |
commit | 2eb0d8c095b70b7ec39b7a1acbd126457dea9322 (patch) | |
tree | 0716126d7b599b6093708f70f1a47b9eb5c9e0c6 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 6f1c4ec9a9b5b7d0b4b67f3bc7c3af6810da5001 (diff) | |
download | voidsky-2eb0d8c095b70b7ec39b7a1acbd126457dea9322.tar.zst |
[APP-611] Add nice date to expanded post view (#567)
* Add nice date to expanded post view * Fix styles
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 191151193..953e67b18 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -15,7 +15,7 @@ import {PostDropdownBtn} from '../util/forms/DropdownButton' import * as Toast from '../util/Toast' import {UserAvatar} from '../util/UserAvatar' import {s} from 'lib/styles' -import {ago} from 'lib/strings/time' +import {ago, niceDate} from 'lib/strings/time' import {sanitizeDisplayName} from 'lib/strings/display-names' import {pluralize} from 'lib/strings/helpers' import {useStores} from 'state/index' @@ -235,7 +235,10 @@ export const PostThreadItem = observer(function PostThreadItem({ ) : undefined} <PostEmbeds embed={item.post.embed} style={s.mb10} /> </ContentHider> - {item._isHighlightedPost && hasEngagement ? ( + <View style={[s.mt2, s.mb10]}> + <Text style={pal.textLight}>{niceDate(item.post.indexedAt)}</Text> + </View> + {hasEngagement ? ( <View style={[styles.expandedInfo, pal.border]}> {item.post.repostCount ? ( <Link |