mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing nav for profile and cards in home screen mode
This commit is contained in:
parent
8a17592dcf
commit
01d82d1097
@ -167,6 +167,13 @@ export function Session() {
|
||||
detailNav.openDrawer();
|
||||
};
|
||||
|
||||
const openProfile = () => {
|
||||
profileNav.openDrawer();
|
||||
}
|
||||
const openCards = () => {
|
||||
cardNav.openDrawer();
|
||||
}
|
||||
|
||||
const conversation = useContext(ConversationContext);
|
||||
|
||||
useEffect(() => {
|
||||
@ -186,11 +193,11 @@ export function Session() {
|
||||
<View style={styles.home}>
|
||||
<SafeAreaView edges={['top', 'bottom']} style={styles.sidebar}>
|
||||
<SafeAreaView edges={['left']} style={styles.options}>
|
||||
<TouchableOpacity style={styles.option} onPress={() => openProfile(profileNav)}>
|
||||
<TouchableOpacity style={styles.option} onPress={openProfile}>
|
||||
<Ionicons style={styles.icon} name={'user'} size={20} />
|
||||
<Text>Profile</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={styles.option} onPress={() => openCards(cardNav)}>
|
||||
<TouchableOpacity style={styles.option} onPress={openCards}>
|
||||
<Ionicons style={styles.icon} name={'contacts'} size={20} />
|
||||
<Text>Contacts</Text>
|
||||
</TouchableOpacity>
|
||||
|
Loading…
Reference in New Issue
Block a user