diff options
Diffstat (limited to 'src/view/screens/stacks/PostRepostedBy.tsx')
-rw-r--r-- | src/view/screens/stacks/PostRepostedBy.tsx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/view/screens/stacks/PostRepostedBy.tsx b/src/view/screens/stacks/PostRepostedBy.tsx deleted file mode 100644 index 000c1a7fc..000000000 --- a/src/view/screens/stacks/PostRepostedBy.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import React, {useLayoutEffect} from 'react' -import {TouchableOpacity} from 'react-native' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' -import {makeRecordUri} from '../../lib/strings' -import {Shell} from '../../shell' -import type {RootTabsScreenProps} from '../../routes/types' -import {PostRepostedBy as PostRepostedByComponent} from '../../com/post-thread/PostRepostedBy' - -export const PostRepostedBy = ({ - navigation, - route, -}: RootTabsScreenProps<'PostRepostedBy'>) => { - const {name, recordKey} = route.params - const uri = makeRecordUri(name, 'blueskyweb.xyz:Posts', recordKey) - - useLayoutEffect(() => { - navigation.setOptions({ - headerShown: true, - headerTitle: 'Reposted By', - headerLeft: () => ( - <TouchableOpacity onPress={() => navigation.goBack()}> - <FontAwesomeIcon icon="arrow-left" /> - </TouchableOpacity> - ), - }) - }, [navigation]) - - const onNavigateContent = (screen: string, props: Record<string, string>) => { - // @ts-ignore it's up to the callers to supply correct params -prf - navigation.push(screen, props) - } - - return ( - <Shell> - <PostRepostedByComponent - uri={uri} - onNavigateContent={onNavigateContent} - /> - </Shell> - ) -} |