about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAnsh Nanda <anshnanda10@gmail.com>2023-05-16 13:56:59 -0700
committerAnsh Nanda <anshnanda10@gmail.com>2023-05-16 13:56:59 -0700
commit58e9c30abe036cbe20e76cb1cacf1df475b9534d (patch)
treefa30399abd138d77ef709f922e703b2cbd60f196 /src
parent25a90133804f435a8c6ed3fa3f151243b6382d34 (diff)
downloadvoidsky-58e9c30abe036cbe20e76cb1cacf1df475b9534d.tar.zst
link to user who created custom feed from preview
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/CustomFeed.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/view/screens/CustomFeed.tsx b/src/view/screens/CustomFeed.tsx
index be6261ac2..05c8d38f1 100644
--- a/src/view/screens/CustomFeed.tsx
+++ b/src/view/screens/CustomFeed.tsx
@@ -11,6 +11,7 @@ import {PostsFeedModel} from 'state/models/feeds/posts'
 import {useCustomFeed} from 'view/com/algos/useCustomFeed'
 import {withAuthRequired} from 'view/com/auth/withAuthRequired'
 import {Feed} from 'view/com/posts/Feed'
+import {Link} from 'view/com/util/Link'
 import {UserAvatar} from 'view/com/util/UserAvatar'
 import {ViewHeader} from 'view/com/util/ViewHeader'
 import {Button} from 'view/com/util/forms/Button'
@@ -48,9 +49,11 @@ export const CustomFeed = withAuthRequired(
                   size={30}
                   avatar={currentFeed?.data.creator.avatar}
                 />
-                <Text style={[pal.textLight]}>
-                  @{currentFeed?.data.creator.handle}
-                </Text>
+                <Link href={`/profile/${currentFeed?.data.creator.handle}`}>
+                  <Text style={[pal.textLight]}>
+                    @{currentFeed?.data.creator.handle}
+                  </Text>
+                </Link>
               </View>
               <Text style={[pal.text]}>{currentFeed?.data.description}</Text>
             </View>
@@ -109,7 +112,7 @@ export const CustomFeed = withAuthRequired(
 const styles = StyleSheet.create({
   container: {
     flex: 1,
-    height: '100%',
+    paddingBottom: 12,
   },
   center: {alignItems: 'center', justifyContent: 'center', gap: 8},
   header: {
@@ -118,6 +121,7 @@ const styles = StyleSheet.create({
   },
   avatarContainer: {
     flexDirection: 'row',
+    alignItems: 'center',
     gap: 8,
   },
   buttonsContainer: {