-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #49536 from koko57/feat/49472-bank-account-verific…
…ation Bank account verification modal info
- Loading branch information
Showing
9 changed files
with
72 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import useSafeAreaInsets from '@hooks/useSafeAreaInsets'; | ||
import {BUTTON_HEIGHT, BUTTON_MARGIN, HEADER_HEIGHT} from './const'; | ||
|
||
function useEmptyViewHeaderHeight(isSmallScreenWidth: boolean): number { | ||
function useEmptyViewHeaderHeight(isSmallScreenWidth: boolean, areHeaderButtonsDisplayed: boolean): number { | ||
const safeAreaInsets = useSafeAreaInsets(); | ||
const BUTTONS_HEIGHT = areHeaderButtonsDisplayed ? BUTTON_HEIGHT + BUTTON_MARGIN : 0; | ||
|
||
return isSmallScreenWidth ? HEADER_HEIGHT + BUTTON_HEIGHT + BUTTON_MARGIN + safeAreaInsets.top : HEADER_HEIGHT; | ||
return isSmallScreenWidth ? HEADER_HEIGHT + BUTTONS_HEIGHT + safeAreaInsets.top : HEADER_HEIGHT; | ||
} | ||
|
||
export default useEmptyViewHeaderHeight; |
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,7 +1,9 @@ | ||
import {BUTTON_HEIGHT, BUTTON_MARGIN, HEADER_HEIGHT} from './const'; | ||
|
||
function useEmptyViewHeaderHeight(isSmallScreenWidth: boolean): number { | ||
return isSmallScreenWidth ? HEADER_HEIGHT + BUTTON_HEIGHT + BUTTON_MARGIN : HEADER_HEIGHT; | ||
function useEmptyViewHeaderHeight(isSmallScreenWidth: boolean, areHeaderButtonsDisplayed: boolean): number { | ||
const BUTTONS_HEIGHT = areHeaderButtonsDisplayed ? BUTTON_HEIGHT + BUTTON_MARGIN : 0; | ||
|
||
return isSmallScreenWidth ? HEADER_HEIGHT + BUTTONS_HEIGHT : HEADER_HEIGHT; | ||
} | ||
|
||
export default useEmptyViewHeaderHeight; |
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,25 @@ | ||
/** Card on waitlist data model */ | ||
type CardOnWaitlist = { | ||
/** Whether the user uses the bank account on another domain */ | ||
bankAccountIsNotOn0therDomain: boolean; | ||
|
||
/** Domain name in "+@expensify-policy<policyID>.exfy" format */ | ||
domainName: string; | ||
|
||
/** Whether the user has a balance checked */ | ||
hasBalanceBeenChecked: boolean; | ||
|
||
/** Whether the user has a verified account */ | ||
hasVerifiedAccount: boolean; | ||
|
||
/** Whether the user has a withdrawal account */ | ||
hasWithdrawalAccount: string; | ||
|
||
/** Whether the user is a member of a private domain */ | ||
isMember0fPrivateDomain: boolean; | ||
|
||
/** Whether the account passed the latest checks */ | ||
passedLatestChecks: boolean; | ||
}; | ||
|
||
export default CardOnWaitlist; |
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