File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
clients/apps/web/src/components/Onboarding Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useAuth } from '@/hooks'
55import { usePostHog } from '@/hooks/posthog'
66import { useCreateOrganization } from '@/hooks/queries'
77import { setValidationErrors } from '@/utils/api/errors'
8+ import { CONFIG } from '@/utils/config'
89import { FormControl } from '@mui/material'
910import { schemas } from '@polar-sh/client'
1011import Button from '@polar-sh/ui/components/atoms/Button'
@@ -351,6 +352,17 @@ export const OrganizationStep = ({
351352 </ Button >
352353 </ Link >
353354 ) }
355+ { ! hasExistingOrg && (
356+ < Button
357+ variant = "secondary"
358+ fullWidth
359+ onClick = { ( ) =>
360+ router . push ( `${ CONFIG . BASE_URL } /v1/auth/logout` )
361+ }
362+ >
363+ Logout
364+ </ Button >
365+ ) }
354366 </ FadeUp >
355367 </ form >
356368 </ Form >
You can’t perform that action at this time.
0 commit comments