mirror of
https://github.com/tooot-app/app
synced 2025-02-01 19:16:56 +01:00
Fix #668
This commit is contained in:
parent
653b588c29
commit
922d7c7917
@ -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
|
||||||
|
@ -38,7 +38,8 @@ const TabSharedAttachments: React.FC<TabSharedStackScreenProps<'Tab-Shared-Attac
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</CustomText>
|
</CustomText>
|
||||||
)
|
),
|
||||||
|
headerBackVisible: false
|
||||||
})
|
})
|
||||||
navigation.setParams({ queryKey })
|
navigation.setParams({ queryKey })
|
||||||
}, [])
|
}, [])
|
||||||
|
@ -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(() => {
|
||||||
|
@ -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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user