From 8515558ac6934996a167814175387f51a1b21751 Mon Sep 17 00:00:00 2001 From: balzack Date: Fri, 14 Oct 2022 21:38:34 -0700 Subject: [PATCH] setting card active state in drawer view --- app/mobile/src/session/Session.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/mobile/src/session/Session.jsx b/app/mobile/src/session/Session.jsx index 4910c4e5..3522a143 100644 --- a/app/mobile/src/session/Session.jsx +++ b/app/mobile/src/session/Session.jsx @@ -177,6 +177,9 @@ export function Session() { const openCards = () => { cardNav.openDrawer(); } + const isCardOpen = () => { + return cardNav.getState().history.length > 1; + } const conversation = useContext(ConversationContext); @@ -202,7 +205,7 @@ export function Session() { Profile - + Contacts