-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0541e1d
commit 0eba07a
Showing
3 changed files
with
17 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,7 @@ | ||
import type {StackScreenProps} from '@react-navigation/stack'; | ||
import type {OnyxEntry} from 'react-native-onyx'; | ||
import type {PublicScreensParamList} from '@libs/Navigation/types'; | ||
import type SCREENS from '@src/SCREENS'; | ||
import type {Account, Credentials, Session} from '@src/types/onyx'; | ||
import type {AutoAuthState} from '@src/types/onyx/Session'; | ||
|
||
type ValidateLoginPageOnyxNativeProps = { | ||
/** Session of currently logged in user */ | ||
session: OnyxEntry<Session>; | ||
}; | ||
type ValidateLoginPageProps = StackScreenProps<PublicScreensParamList, typeof SCREENS.VALIDATE_LOGIN>; | ||
|
||
type ValidateLoginPageOnyxProps = ValidateLoginPageOnyxNativeProps & { | ||
/** The details about the account that the user is signing in with */ | ||
account: OnyxEntry<Account>; | ||
|
||
/** The credentials of the person logging in */ | ||
credentials: OnyxEntry<Credentials>; | ||
|
||
/** The auto authentication (magic link) status */ | ||
autoAuthState: OnyxEntry<AutoAuthState>; | ||
}; | ||
|
||
type ValidateLoginPageProps<OnyxProps> = OnyxProps & StackScreenProps<PublicScreensParamList, typeof SCREENS.VALIDATE_LOGIN>; | ||
|
||
export type {ValidateLoginPageOnyxNativeProps, ValidateLoginPageOnyxProps, ValidateLoginPageProps}; | ||
export type {ValidateLoginPageProps}; | ||