about summary refs log tree commit diff
path: root/src/view/screens/PostUpvotedBy.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/PostUpvotedBy.tsx')
-rw-r--r--src/view/screens/PostUpvotedBy.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/PostUpvotedBy.tsx b/src/view/screens/PostUpvotedBy.tsx
index b1690721b..35b55f3c4 100644
--- a/src/view/screens/PostUpvotedBy.tsx
+++ b/src/view/screens/PostUpvotedBy.tsx
@@ -2,13 +2,14 @@ import React from 'react'
 import {View} from 'react-native'
 import {useFocusEffect} from '@react-navigation/native'
 import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types'
+import {withAuthRequired} from 'view/com/auth/withAuthRequired'
 import {ViewHeader} from '../com/util/ViewHeader'
 import {PostVotedBy as PostLikedByComponent} from '../com/post-thread/PostVotedBy'
 import {useStores} from 'state/index'
 import {makeRecordUri} from 'lib/strings/url-helpers'
 
 type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostUpvotedBy'>
-export const PostUpvotedByScreen = ({route}: Props) => {
+export const PostUpvotedByScreen = withAuthRequired(({route}: Props) => {
   const store = useStores()
   const {name, rkey} = route.params
   const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
@@ -25,4 +26,4 @@ export const PostUpvotedByScreen = ({route}: Props) => {
       <PostLikedByComponent uri={uri} direction="up" />
     </View>
   )
-}
+})