about summary refs log tree commit diff
path: root/src/screens/SignupQueued.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-08-15 20:58:13 +0100
committerGitHub <noreply@github.com>2024-08-15 20:58:13 +0100
commitb6e515c664d51ffe357c3562fd514301805ade8c (patch)
treeac0193c172d6c7ef62ac59d411c2dfc7ae1614c3 /src/screens/SignupQueued.tsx
parentf3b57dd45600c0c8197ce45a0f927b57e0799760 (diff)
downloadvoidsky-b6e515c664d51ffe357c3562fd514301805ade8c.tar.zst
Move global "Sign out" out of the current account row (#4941)
* Rename logout to logoutEveryAccount

* Add logoutCurrentAccount()

* Make all "Log out" buttons refer to current account

Each of these usages is completely contextual and refers to a specific account.

* Add Sign out of all accounts to Settings

* Move single account Sign Out below as well

* Prompt on account removal

* Add Other Accounts header to reduce ambiguity

* Spacing fix

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/screens/SignupQueued.tsx')
-rw-r--r--src/screens/SignupQueued.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screens/SignupQueued.tsx b/src/screens/SignupQueued.tsx
index 69ef93618..e7336569c 100644
--- a/src/screens/SignupQueued.tsx
+++ b/src/screens/SignupQueued.tsx
@@ -23,7 +23,7 @@ export function SignupQueued() {
   const insets = useSafeAreaInsets()
   const {gtMobile} = useBreakpoints()
   const onboardingDispatch = useOnboardingDispatch()
-  const {logout} = useSessionApi()
+  const {logoutCurrentAccount} = useSessionApi()
   const agent = useAgent()
 
   const [isProcessing, setProcessing] = React.useState(false)
@@ -153,7 +153,7 @@ export function SignupQueued() {
                   variant="ghost"
                   size="large"
                   label={_(msg`Log out`)}
-                  onPress={() => logout('SignupQueued')}>
+                  onPress={() => logoutCurrentAccount('SignupQueued')}>
                   <ButtonText style={[{color: t.palette.primary_500}]}>
                     <Trans>Log out</Trans>
                   </ButtonText>
@@ -182,7 +182,7 @@ export function SignupQueued() {
               variant="ghost"
               size="large"
               label={_(msg`Log out`)}
-              onPress={() => logout('SignupQueued')}>
+              onPress={() => logoutCurrentAccount('SignupQueued')}>
               <ButtonText style={[{color: t.palette.primary_500}]}>
                 <Trans>Log out</Trans>
               </ButtonText>