1
0
mirror of https://github.com/tooot-app/app synced 2025-02-01 19:16:56 +01:00
This commit is contained in:
xmflsct 2023-01-26 23:35:52 +01:00
parent 653b588c29
commit 922d7c7917
4 changed files with 8 additions and 10 deletions

View File

@ -80,8 +80,7 @@ const menuHashtag = ({
type: 'item', type: 'item',
key: 'hashtag-filter', key: 'hashtag-filter',
props: { props: {
onSelect: () => onSelect: () => navigation.navigate('Tab-Shared-Filter', { source: 'hashtag', tag_name }),
navigation.navigate('Tab-Shared-Filter', { source: 'hashtag', tag_name, queryKey }),
disabled: false, disabled: false,
destructive: false, destructive: false,
hidden: !canFollowTags hidden: !canFollowTags

View File

@ -38,7 +38,8 @@ const TabSharedAttachments: React.FC<TabSharedStackScreenProps<'Tab-Shared-Attac
]} ]}
/> />
</CustomText> </CustomText>
) ),
headerBackVisible: false
}) })
navigation.setParams({ queryKey }) navigation.setParams({ queryKey })
}, []) }, [])

View File

@ -24,11 +24,7 @@ const TabSharedSearch: React.FC<TabSharedStackScreenProps<'Tab-Shared-Search'>>
const [searchTerm, setSearchTerm] = useState<string>('') const [searchTerm, setSearchTerm] = useState<string>('')
useEffect(() => { useEffect(() => {
navigation.setOptions({ navigation.setOptions({
...(Platform.OS === 'ios' headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
? {
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />
}
: { headerLeft: () => null }),
headerTitle: () => { headerTitle: () => {
return ( return (
<View <View
@ -77,7 +73,8 @@ const TabSharedSearch: React.FC<TabSharedStackScreenProps<'Tab-Shared-Search'>>
/> />
</View> </View>
) )
} },
headerBackVisible: false
}) })
}, [mode]) }, [mode])
useEffect(() => { useEffect(() => {

View File

@ -66,7 +66,8 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
/> />
</Pressable> </Pressable>
), ),
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} /> headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
headerBackVisible: false
}) })
navigation.setParams({ toot, queryKey: queryKey.local }) navigation.setParams({ toot, queryKey: queryKey.local })
}, [hasRemoteContent]) }, [hasRemoteContent])