about summary refs log tree commit diff
path: root/src/view/screens/PostLikedBy.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/PostLikedBy.tsx')
-rw-r--r--src/view/screens/PostLikedBy.tsx38
1 files changed, 17 insertions, 21 deletions
diff --git a/src/view/screens/PostLikedBy.tsx b/src/view/screens/PostLikedBy.tsx
index 2209310d0..7cbb81102 100644
--- a/src/view/screens/PostLikedBy.tsx
+++ b/src/view/screens/PostLikedBy.tsx
@@ -2,7 +2,6 @@ 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 {PostLikedBy as PostLikedByComponent} from '../com/post-thread/PostLikedBy'
 import {makeRecordUri} from 'lib/strings/url-helpers'
@@ -11,25 +10,22 @@ import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
 type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostLikedBy'>
-export const PostLikedByScreen = withAuthRequired(
-  ({route}: Props) => {
-    const setMinimalShellMode = useSetMinimalShellMode()
-    const {name, rkey} = route.params
-    const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
-    const {_} = useLingui()
+export const PostLikedByScreen = ({route}: Props) => {
+  const setMinimalShellMode = useSetMinimalShellMode()
+  const {name, rkey} = route.params
+  const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
+  const {_} = useLingui()
 
-    useFocusEffect(
-      React.useCallback(() => {
-        setMinimalShellMode(false)
-      }, [setMinimalShellMode]),
-    )
+  useFocusEffect(
+    React.useCallback(() => {
+      setMinimalShellMode(false)
+    }, [setMinimalShellMode]),
+  )
 
-    return (
-      <View>
-        <ViewHeader title={_(msg`Liked by`)} />
-        <PostLikedByComponent uri={uri} />
-      </View>
-    )
-  },
-  {isPublic: true},
-)
+  return (
+    <View>
+      <ViewHeader title={_(msg`Liked by`)} />
+      <PostLikedByComponent uri={uri} />
+    </View>
+  )
+}