diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-28 13:56:05 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-28 13:56:05 -0600 |
commit | 1aa1f7704957fe0725832ff6580d8f8eef14f489 (patch) | |
tree | ea1eb27b8edfac96e492dfa45583fb281432aa04 /src/view/com/post/Post.tsx | |
parent | 6ec33dd89fa584cc24def38a3a909c7144066d82 (diff) | |
download | voidsky-1aa1f7704957fe0725832ff6580d8f8eef14f489.tar.zst |
Improve unread notification styling
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 033cc6560..736b40157 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -1,8 +1,15 @@ import React, {useState, useEffect} from 'react' +import { + ActivityIndicator, + StyleProp, + StyleSheet, + Text, + View, + ViewStyle, +} from 'react-native' import {observer} from 'mobx-react-lite' import {AtUri} from '../../../third-party/uri' import * as PostType from '../../../third-party/api/src/client/types/app/bsky/feed/post' -import {ActivityIndicator, StyleSheet, Text, View} from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {PostThreadViewModel} from '../../../state/models/post-thread-view' import {Link} from '../util/Link' @@ -18,9 +25,11 @@ import {s, colors} from '../../lib/styles' export const Post = observer(function Post({ uri, initView, + style, }: { uri: string initView?: PostThreadViewModel + style?: StyleProp<ViewStyle> }) { const store = useStores() const [view, setView] = useState<PostThreadViewModel | undefined>(initView) @@ -115,7 +124,7 @@ export const Post = observer(function Post({ } return ( - <Link style={styles.outer} href={itemHref} title={itemTitle}> + <Link style={[styles.outer, style]} href={itemHref} title={itemTitle}> <View style={styles.layout}> <View style={styles.layoutAvi}> <Link href={authorHref} title={authorTitle}> |