diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-09-27 08:59:15 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-09-27 08:59:15 -0500 |
commit | dd73fc218366a2ad66188e19079fe2f0afeab1d7 (patch) | |
tree | c8b440aad8f423f152b423e0a2cca0de315de4d0 /src/view/shell/mobile/accounts-menu.tsx | |
parent | 02083029076de84e3f29a20e6bc6b0b2b13dfccf (diff) | |
download | voidsky-dd73fc218366a2ad66188e19079fe2f0afeab1d7.tar.zst |
Add logout and tweak signin screen
Diffstat (limited to 'src/view/shell/mobile/accounts-menu.tsx')
-rw-r--r-- | src/view/shell/mobile/accounts-menu.tsx | 14 |
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> </> ), |