Fixed modal set to false when switching between history and bookmark tab
This commit is contained in:
@@ -84,10 +84,16 @@ const HistoryScreen: React.FC = () => {
|
|||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
{/* Header for toggling between History and Bookmarks */}
|
{/* Header for toggling between History and Bookmarks */}
|
||||||
<View style={styles.headerContainer}>
|
<View style={styles.headerContainer}>
|
||||||
<TouchableOpacity onPress={() => setShowBookmarks(false)}>
|
<TouchableOpacity onPress={() => {
|
||||||
|
setShowBookmarks(false);
|
||||||
|
clearSelectedData();
|
||||||
|
}}>
|
||||||
<Text style={!showBookmarks ? styles.headerTextActive : styles.headerTextInactive}>History</Text>
|
<Text style={!showBookmarks ? styles.headerTextActive : styles.headerTextInactive}>History</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<TouchableOpacity onPress={() => setShowBookmarks(true)}>
|
<TouchableOpacity onPress={() => {
|
||||||
|
setShowBookmarks(true);
|
||||||
|
clearSelectedData();
|
||||||
|
}}>
|
||||||
<Text style={showBookmarks ? styles.headerTextActive : styles.headerTextInactive}>Bookmarks</Text>
|
<Text style={showBookmarks ? styles.headerTextActive : styles.headerTextInactive}>Bookmarks</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user