forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#24083 from daordonez11/signin-rhp
Signin rhp
- Loading branch information
Showing
9 changed files
with
87 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,4 +203,5 @@ export default { | |
isSubReportPageRoute: pathSegments.length > 2, | ||
}; | ||
}, | ||
SIGN_IN_MODAL: 'sign-in-modal', | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import SignInPage from './SignInPage'; | ||
import ScreenWrapper from '../../components/ScreenWrapper'; | ||
import HeaderWithBackButton from '../../components/HeaderWithBackButton'; | ||
import Navigation from '../../libs/Navigation/Navigation'; | ||
import styles from '../../styles/styles'; | ||
import * as Session from '../../libs/actions/Session'; | ||
|
||
const propTypes = {}; | ||
|
||
const defaultProps = {}; | ||
|
||
function SignInModal() { | ||
if (!Session.isAnonymousUser()) { | ||
// Sign in in RHP is only for anonymous users | ||
Navigation.isNavigationReady().then(() => { | ||
Navigation.dismissModal(); | ||
}); | ||
} | ||
return ( | ||
<ScreenWrapper | ||
style={[styles.highlightBG]} | ||
includeSafeAreaPaddingBottom={false} | ||
shouldEnableMaxHeight | ||
> | ||
<HeaderWithBackButton onBackButtonPress={() => Navigation.goBack()} /> | ||
<SignInPage isInModal /> | ||
</ScreenWrapper> | ||
); | ||
} | ||
|
||
SignInModal.propTypes = propTypes; | ||
SignInModal.defaultProps = defaultProps; | ||
SignInModal.displayName = 'SignInModal'; | ||
|
||
export default SignInModal; |
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