mirror of
https://github.com/tooot-app/app
synced 2025-01-21 21:35:34 +01:00
Fix #668
This commit is contained in:
parent
653b588c29
commit
922d7c7917
@ -80,8 +80,7 @@ const menuHashtag = ({
|
||||
type: 'item',
|
||||
key: 'hashtag-filter',
|
||||
props: {
|
||||
onSelect: () =>
|
||||
navigation.navigate('Tab-Shared-Filter', { source: 'hashtag', tag_name, queryKey }),
|
||||
onSelect: () => navigation.navigate('Tab-Shared-Filter', { source: 'hashtag', tag_name }),
|
||||
disabled: false,
|
||||
destructive: false,
|
||||
hidden: !canFollowTags
|
||||
|
@ -38,7 +38,8 @@ const TabSharedAttachments: React.FC<TabSharedStackScreenProps<'Tab-Shared-Attac
|
||||
]}
|
||||
/>
|
||||
</CustomText>
|
||||
)
|
||||
),
|
||||
headerBackVisible: false
|
||||
})
|
||||
navigation.setParams({ queryKey })
|
||||
}, [])
|
||||
|
@ -24,11 +24,7 @@ const TabSharedSearch: React.FC<TabSharedStackScreenProps<'Tab-Shared-Search'>>
|
||||
const [searchTerm, setSearchTerm] = useState<string>('')
|
||||
useEffect(() => {
|
||||
navigation.setOptions({
|
||||
...(Platform.OS === 'ios'
|
||||
? {
|
||||
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />
|
||||
}
|
||||
: { headerLeft: () => null }),
|
||||
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
|
||||
headerTitle: () => {
|
||||
return (
|
||||
<View
|
||||
@ -77,7 +73,8 @@ const TabSharedSearch: React.FC<TabSharedStackScreenProps<'Tab-Shared-Search'>>
|
||||
/>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
},
|
||||
headerBackVisible: false
|
||||
})
|
||||
}, [mode])
|
||||
useEffect(() => {
|
||||
|
@ -66,7 +66,8 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
|
||||
/>
|
||||
</Pressable>
|
||||
),
|
||||
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />
|
||||
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
|
||||
headerBackVisible: false
|
||||
})
|
||||
navigation.setParams({ toot, queryKey: queryKey.local })
|
||||
}, [hasRemoteContent])
|
||||
|
Loading…
Reference in New Issue
Block a user