about summary refs log tree commit diff
path: root/src/view/shell/mobile/accounts-menu.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/shell/mobile/accounts-menu.tsx')
-rw-r--r--src/view/shell/mobile/accounts-menu.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/view/shell/mobile/accounts-menu.tsx b/src/view/shell/mobile/accounts-menu.tsx
index fb8b9682b..b4b538603 100644
--- a/src/view/shell/mobile/accounts-menu.tsx
+++ b/src/view/shell/mobile/accounts-menu.tsx
@@ -14,8 +14,10 @@ import {s, colors} from '../../lib/styles'
 
 export function createAccountsMenu({
   debug_onPressItem,
+  onPressLogout,
 }: {
   debug_onPressItem: () => void
+  onPressLogout: () => void
 }): RootSiblings {
   const onPressItem = (_index: number) => {
     sibling.destroy()
@@ -41,6 +43,18 @@ export function createAccountsMenu({
             <FontAwesomeIcon style={styles.icon} icon="plus" />
             <Text style={styles.label}>New Account</Text>
           </TouchableOpacity>
+          <TouchableOpacity
+            style={[styles.menuItem, styles.menuItemBorder]}
+            onPress={() => {
+              sibling.destroy()
+              onPressLogout()
+            }}>
+            <FontAwesomeIcon
+              style={styles.icon}
+              icon="arrow-right-from-bracket"
+            />
+            <Text style={styles.label}>Log out</Text>
+          </TouchableOpacity>
         </View>
       </>
     ),