about summary refs log tree commit diff
path: root/src/screens/Login
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-03-20 19:44:52 +0000
committerSamuel Newman <mozzius@protonmail.com>2024-03-20 19:44:52 +0000
commit1d10946f540de596ef5b895a1608e63ea15c896f (patch)
treeb61a24bce2e108cdad8ac91eff0e2e6566e065ad /src/screens/Login
parent823ce637962edc645e133b333c9ac099dccaf22b (diff)
downloadvoidsky-1d10946f540de596ef5b895a1608e63ea15c896f.tar.zst
sort imports for files related to this PR
Diffstat (limited to 'src/screens/Login')
-rw-r--r--src/screens/Login/ChooseAccountForm.tsx20
-rw-r--r--src/screens/Login/ForgotPasswordForm.tsx22
-rw-r--r--src/screens/Login/FormContainer.tsx4
-rw-r--r--src/screens/Login/LoginForm.tsx24
-rw-r--r--src/screens/Login/PasswordUpdatedForm.tsx7
-rw-r--r--src/screens/Login/SetNewPasswordForm.tsx24
-rw-r--r--src/screens/Login/index.tsx22
7 files changed, 62 insertions, 61 deletions
diff --git a/src/screens/Login/ChooseAccountForm.tsx b/src/screens/Login/ChooseAccountForm.tsx
index d90675f9e..28e99b02f 100644
--- a/src/screens/Login/ChooseAccountForm.tsx
+++ b/src/screens/Login/ChooseAccountForm.tsx
@@ -1,23 +1,23 @@
 import React from 'react'
 import {View} from 'react-native'
-import {Trans, msg} from '@lingui/macro'
+import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
-import {useAnalytics} from 'lib/analytics/analytics'
-import {UserAvatar} from '../../view/com/util/UserAvatar'
-import {colors} from 'lib/styles'
-import {useSession, useSessionApi, SessionAccount} from '#/state/session'
+import {useAnalytics} from '#/lib/analytics/analytics'
+import {logEvent} from '#/lib/statsig/statsig'
+import {colors} from '#/lib/styles'
 import {useProfileQuery} from '#/state/queries/profile'
+import {SessionAccount, useSession, useSessionApi} from '#/state/session'
 import {useLoggedOutViewControls} from '#/state/shell/logged-out'
 import * as Toast from '#/view/com/util/Toast'
-import {Button} from '#/components/Button'
+import {UserAvatar} from '#/view/com/util/UserAvatar'
 import {atoms as a, useTheme} from '#/alf'
-import {Text} from '#/components/Typography'
-import {ChevronRight_Stroke2_Corner0_Rounded as Chevron} from '#/components/icons/Chevron'
-import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
+import {Button} from '#/components/Button'
 import * as TextField from '#/components/forms/TextField'
+import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
+import {ChevronRight_Stroke2_Corner0_Rounded as Chevron} from '#/components/icons/Chevron'
+import {Text} from '#/components/Typography'
 import {FormContainer} from './FormContainer'
-import {logEvent} from '#/lib/statsig/statsig'
 
 function AccountItem({
   account,
diff --git a/src/screens/Login/ForgotPasswordForm.tsx b/src/screens/Login/ForgotPasswordForm.tsx
index ab9d02536..37d24bb10 100644
--- a/src/screens/Login/ForgotPasswordForm.tsx
+++ b/src/screens/Login/ForgotPasswordForm.tsx
@@ -1,23 +1,23 @@
-import React, {useState, useEffect} from 'react'
+import React, {useEffect, useState} from 'react'
 import {ActivityIndicator, Keyboard, View} from 'react-native'
 import {ComAtprotoServerDescribeServer} from '@atproto/api'
-import * as EmailValidator from 'email-validator'
 import {BskyAgent} from '@atproto/api'
-import {Trans, msg} from '@lingui/macro'
+import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
+import * as EmailValidator from 'email-validator'
 
-import * as TextField from '#/components/forms/TextField'
-import {HostingProvider} from '#/components/forms/HostingProvider'
-import {At_Stroke2_Corner0_Rounded as At} from '#/components/icons/At'
-import {atoms as a, useTheme} from '#/alf'
-import {useAnalytics} from 'lib/analytics/analytics'
-import {isNetworkError} from 'lib/strings/errors'
-import {cleanError} from 'lib/strings/errors'
+import {useAnalytics} from '#/lib/analytics/analytics'
+import {isNetworkError} from '#/lib/strings/errors'
+import {cleanError} from '#/lib/strings/errors'
 import {logger} from '#/logger'
+import {atoms as a, useTheme} from '#/alf'
 import {Button, ButtonText} from '#/components/Button'
+import {FormError} from '#/components/forms/FormError'
+import {HostingProvider} from '#/components/forms/HostingProvider'
+import * as TextField from '#/components/forms/TextField'
+import {At_Stroke2_Corner0_Rounded as At} from '#/components/icons/At'
 import {Text} from '#/components/Typography'
 import {FormContainer} from './FormContainer'
-import {FormError} from '#/components/forms/FormError'
 
 type ServiceDescription = ComAtprotoServerDescribeServer.OutputSchema
 
diff --git a/src/screens/Login/FormContainer.tsx b/src/screens/Login/FormContainer.tsx
index cd17d06d7..20a3ba321 100644
--- a/src/screens/Login/FormContainer.tsx
+++ b/src/screens/Login/FormContainer.tsx
@@ -1,15 +1,15 @@
 import React from 'react'
 import {
   ScrollView,
+  type StyleProp,
   StyleSheet,
   View,
-  type StyleProp,
   type ViewStyle,
 } from 'react-native'
 
+import {isWeb} from '#/platform/detection'
 import {atoms as a, useBreakpoints, useTheme} from '#/alf'
 import {Text} from '#/components/Typography'
-import {isWeb} from '#/platform/detection'
 
 export function FormContainer({
   testID,
diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx
index f43f6da1f..a2cdb7f96 100644
--- a/src/screens/Login/LoginForm.tsx
+++ b/src/screens/Login/LoginForm.tsx
@@ -1,4 +1,4 @@
-import React, {useState, useRef} from 'react'
+import React, {useRef, useState} from 'react'
 import {
   ActivityIndicator,
   Keyboard,
@@ -7,25 +7,25 @@ import {
   View,
 } from 'react-native'
 import {ComAtprotoServerDescribeServer} from '@atproto/api'
-import {Trans, msg} from '@lingui/macro'
+import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
-import {useAnalytics} from 'lib/analytics/analytics'
-import {createFullHandle} from 'lib/strings/handles'
-import {isNetworkError} from 'lib/strings/errors'
-import {useSessionApi} from '#/state/session'
-import {cleanError} from 'lib/strings/errors'
+import {useAnalytics} from '#/lib/analytics/analytics'
+import {isNetworkError} from '#/lib/strings/errors'
+import {cleanError} from '#/lib/strings/errors'
+import {createFullHandle} from '#/lib/strings/handles'
 import {logger} from '#/logger'
-import {Button, ButtonIcon, ButtonText} from '#/components/Button'
+import {useSessionApi} from '#/state/session'
 import {atoms as a, useTheme} from '#/alf'
-import {Text} from '#/components/Typography'
+import {Button, ButtonIcon, ButtonText} from '#/components/Button'
+import {FormError} from '#/components/forms/FormError'
+import {HostingProvider} from '#/components/forms/HostingProvider'
 import * as TextField from '#/components/forms/TextField'
 import {At_Stroke2_Corner0_Rounded as At} from '#/components/icons/At'
 import {Lock_Stroke2_Corner0_Rounded as Lock} from '#/components/icons/Lock'
-import {HostingProvider} from '#/components/forms/HostingProvider'
-import {FormContainer} from './FormContainer'
-import {FormError} from '#/components/forms/FormError'
 import {Loader} from '#/components/Loader'
+import {Text} from '#/components/Typography'
+import {FormContainer} from './FormContainer'
 
 type ServiceDescription = ComAtprotoServerDescribeServer.OutputSchema
 
diff --git a/src/screens/Login/PasswordUpdatedForm.tsx b/src/screens/Login/PasswordUpdatedForm.tsx
index 218cab539..5407f3f1e 100644
--- a/src/screens/Login/PasswordUpdatedForm.tsx
+++ b/src/screens/Login/PasswordUpdatedForm.tsx
@@ -1,12 +1,13 @@
 import React, {useEffect} from 'react'
 import {View} from 'react-native'
-import {useAnalytics} from 'lib/analytics/analytics'
 import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
-import {FormContainer} from './FormContainer'
+
+import {useAnalytics} from '#/lib/analytics/analytics'
+import {atoms as a, useBreakpoints} from '#/alf'
 import {Button, ButtonText} from '#/components/Button'
 import {Text} from '#/components/Typography'
-import {atoms as a, useBreakpoints} from '#/alf'
+import {FormContainer} from './FormContainer'
 
 export const PasswordUpdatedForm = ({
   onPressNext,
diff --git a/src/screens/Login/SetNewPasswordForm.tsx b/src/screens/Login/SetNewPasswordForm.tsx
index 678440cf4..072d7a978 100644
--- a/src/screens/Login/SetNewPasswordForm.tsx
+++ b/src/screens/Login/SetNewPasswordForm.tsx
@@ -1,22 +1,22 @@
-import React, {useState, useEffect} from 'react'
+import React, {useEffect, useState} from 'react'
 import {ActivityIndicator, View} from 'react-native'
 import {BskyAgent} from '@atproto/api'
-import {useAnalytics} from 'lib/analytics/analytics'
+import {msg, Trans} from '@lingui/macro'
+import {useLingui} from '@lingui/react'
 
-import {isNetworkError} from 'lib/strings/errors'
-import {cleanError} from 'lib/strings/errors'
-import {checkAndFormatResetCode} from 'lib/strings/password'
+import {useAnalytics} from '#/lib/analytics/analytics'
+import {isNetworkError} from '#/lib/strings/errors'
+import {cleanError} from '#/lib/strings/errors'
+import {checkAndFormatResetCode} from '#/lib/strings/password'
 import {logger} from '#/logger'
-import {Trans, msg} from '@lingui/macro'
-import {useLingui} from '@lingui/react'
-import {FormContainer} from './FormContainer'
-import {Text} from '#/components/Typography'
+import {atoms as a, useTheme} from '#/alf'
+import {Button, ButtonText} from '#/components/Button'
+import {FormError} from '#/components/forms/FormError'
 import * as TextField from '#/components/forms/TextField'
 import {Lock_Stroke2_Corner0_Rounded as Lock} from '#/components/icons/Lock'
 import {Ticket_Stroke2_Corner0_Rounded as Ticket} from '#/components/icons/Ticket'
-import {Button, ButtonText} from '#/components/Button'
-import {useTheme, atoms as a} from '#/alf'
-import {FormError} from '#/components/forms/FormError'
+import {Text} from '#/components/Typography'
+import {FormContainer} from './FormContainer'
 
 export const SetNewPasswordForm = ({
   error,
diff --git a/src/screens/Login/index.tsx b/src/screens/Login/index.tsx
index e032d4189..49f7518b0 100644
--- a/src/screens/Login/index.tsx
+++ b/src/screens/Login/index.tsx
@@ -1,23 +1,23 @@
 import React from 'react'
 import {KeyboardAvoidingView} from 'react-native'
-import {useAnalytics} from '#/lib/analytics/analytics'
+import {LayoutAnimationConfig} from 'react-native-reanimated'
+import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
-import {LoggedOutLayout} from '#/view/com/util/layouts/LoggedOutLayout'
-import {SessionAccount, useSession} from '#/state/session'
+import {useAnalytics} from '#/lib/analytics/analytics'
 import {DEFAULT_SERVICE} from '#/lib/constants'
-import {useLoggedOutView} from '#/state/shell/logged-out'
-import {useServiceQuery} from '#/state/queries/service'
-import {msg} from '@lingui/macro'
 import {logger} from '#/logger'
-import {atoms as a} from '#/alf'
-import {ChooseAccountForm} from './ChooseAccountForm'
+import {useServiceQuery} from '#/state/queries/service'
+import {SessionAccount, useSession} from '#/state/session'
+import {useLoggedOutView} from '#/state/shell/logged-out'
+import {LoggedOutLayout} from '#/view/com/util/layouts/LoggedOutLayout'
 import {ForgotPasswordForm} from '#/screens/Login/ForgotPasswordForm'
-import {SetNewPasswordForm} from '#/screens/Login/SetNewPasswordForm'
-import {PasswordUpdatedForm} from '#/screens/Login/PasswordUpdatedForm'
 import {LoginForm} from '#/screens/Login/LoginForm'
+import {PasswordUpdatedForm} from '#/screens/Login/PasswordUpdatedForm'
+import {SetNewPasswordForm} from '#/screens/Login/SetNewPasswordForm'
+import {atoms as a} from '#/alf'
+import {ChooseAccountForm} from './ChooseAccountForm'
 import {ScreenTransition} from './ScreenTransition'
-import {LayoutAnimationConfig} from 'react-native-reanimated'
 
 enum Forms {
   Login,