-
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 branch 'main' of github.com:Expensify/App into stites-addEngage…
…mentNumbers
- Loading branch information
Showing
198 changed files
with
2,145 additions
and
1,732 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
37 changes: 0 additions & 37 deletions
37
...-classic/getting-started/approved-accountants/Your-Expensify-Partner-Manager.md
This file was deleted.
Oops, something went wrong.
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
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,25 +1,21 @@ | ||
import type {ParamListBase, RouteProp} from '@react-navigation/native'; | ||
import {useRoute} from '@react-navigation/native'; | ||
import {navigationRef} from '@libs/Navigation/Navigation'; | ||
import NAVIGATORS from '@src/NAVIGATORS'; | ||
import useWindowDimensions from './useWindowDimensions'; | ||
|
||
type RouteParams = ParamListBase & { | ||
params: {isInRHP?: boolean}; | ||
}; | ||
type ResponsiveLayoutResult = { | ||
shouldUseNarrowLayout: boolean; | ||
isSmallScreenWidth: boolean; | ||
isInModal: boolean; | ||
}; | ||
/** | ||
* Hook to determine if we are on mobile devices or in the RHP | ||
* Hook to determine if we are on mobile devices or in the Modal Navigator | ||
*/ | ||
export default function useResponsiveLayout(): ResponsiveLayoutResult { | ||
const {isSmallScreenWidth} = useWindowDimensions(); | ||
try { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const {params} = useRoute<RouteProp<RouteParams, 'params'>>(); | ||
return {shouldUseNarrowLayout: isSmallScreenWidth || (params?.isInRHP ?? false)}; | ||
} catch (error) { | ||
return { | ||
shouldUseNarrowLayout: isSmallScreenWidth, | ||
}; | ||
} | ||
const state = navigationRef?.getRootState(); | ||
const lastRoute = state?.routes?.at(-1); | ||
const lastRouteName = lastRoute?.name; | ||
const isInModal = lastRouteName === NAVIGATORS.LEFT_MODAL_NAVIGATOR || lastRouteName === NAVIGATORS.RIGHT_MODAL_NAVIGATOR; | ||
const shouldUseNarrowLayout = isSmallScreenWidth || isInModal; | ||
return {shouldUseNarrowLayout, isSmallScreenWidth, isInModal}; | ||
} |
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,6 @@ | ||
type AcceptWalletTermsParams = { | ||
hasAcceptedTerms: boolean; | ||
reportID: string; | ||
}; | ||
|
||
export default AcceptWalletTermsParams; |
5 changes: 5 additions & 0 deletions
5
src/libs/API/parameters/ActivatePhysicalExpensifyCardParams.ts
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,5 @@ | ||
type ActivatePhysicalExpensifyCardParams = { | ||
cardLastFourDigits: string; | ||
cardID: number; | ||
}; | ||
export default ActivatePhysicalExpensifyCardParams; |
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,13 @@ | ||
type AddCommentOrAttachementParams = { | ||
reportID: string; | ||
reportActionID?: string; | ||
commentReportActionID?: string | null; | ||
reportComment?: string; | ||
file?: File; | ||
timezone?: string; | ||
shouldAllowActionableMentionWhispers?: boolean; | ||
clientCreatedTime?: string; | ||
isOldDotConciergeChat?: boolean; | ||
}; | ||
|
||
export default AddCommentOrAttachementParams; |
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,10 @@ | ||
type AddEmojiReactionParams = { | ||
reportID: string; | ||
skinTone: string | number; | ||
emojiCode: string; | ||
reportActionID: string; | ||
createdAt: string; | ||
useEmojiReactions: boolean; | ||
}; | ||
|
||
export default AddEmojiReactionParams; |
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,8 @@ | ||
type AddMembersToWorkspaceParams = { | ||
employees: string; | ||
welcomeNote: string; | ||
policyID: string; | ||
reportCreationData?: string; | ||
}; | ||
|
||
export default AddMembersToWorkspaceParams; |
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,3 @@ | ||
type AddNewContactMethodParams = {partnerUserID: string}; | ||
|
||
export default AddNewContactMethodParams; |
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,14 @@ | ||
import type {ValueOf} from 'type-fest'; | ||
import type CONST from '@src/CONST'; | ||
|
||
type AddPaymentCardParams = { | ||
cardNumber: string; | ||
cardYear: string; | ||
cardMonth: string; | ||
cardCVV: string; | ||
addressName: string; | ||
addressZip: string; | ||
currency: ValueOf<typeof CONST.CURRENCY>; | ||
isP2PDebitCard: boolean; | ||
}; | ||
export default AddPaymentCardParams; |
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,12 @@ | ||
type AddPersonalBankAccountParams = { | ||
addressName: string; | ||
routingNumber: string; | ||
accountNumber: string; | ||
isSavings: boolean; | ||
setupType: string; | ||
bank?: string; | ||
plaidAccountID: string; | ||
plaidAccessToken: string; | ||
}; | ||
|
||
export default AddPersonalBankAccountParams; |
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,9 @@ | ||
type AddSchoolPrincipalParams = { | ||
firstName: string; | ||
lastName: string; | ||
partnerUserID: string; | ||
policyID: string; | ||
reportCreationData: string; | ||
}; | ||
|
||
export default AddSchoolPrincipalParams; |
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,15 @@ | ||
import type {ValueOf} from 'type-fest'; | ||
import type CONST from '@src/CONST'; | ||
import type {WriteCapability} from '@src/types/onyx/Report'; | ||
|
||
type AddWorkspaceRoomParams = { | ||
reportID: string; | ||
createdReportActionID: string; | ||
policyID?: string; | ||
reportName?: string; | ||
visibility?: ValueOf<typeof CONST.REPORT.VISIBILITY>; | ||
writeCapability?: WriteCapability; | ||
welcomeMessage?: string; | ||
}; | ||
|
||
export default AddWorkspaceRoomParams; |
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,6 @@ | ||
type AnswerQuestionsForWalletParams = { | ||
idologyAnswers: string; | ||
idNumber: string; | ||
}; | ||
|
||
export default AnswerQuestionsForWalletParams; |
Oops, something went wrong.