-
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.
- Loading branch information
Showing
11 changed files
with
98 additions
and
104 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 |
---|---|---|
|
@@ -963,6 +963,7 @@ const CONST = { | |
GUIDES_DOMAIN: 'team.expensify.com', | ||
HELP: '[email protected]', | ||
INTEGRATION_TESTING_CREDS: '[email protected]', | ||
NOTIFICATIONS: '[email protected]', | ||
PAYROLL: '[email protected]', | ||
QA: '[email protected]', | ||
QA_TRAVIS: '[email protected]', | ||
|
@@ -982,6 +983,7 @@ const CONST = { | |
FIRST_RESPONDER: Number(Config?.EXPENSIFY_ACCOUNT_ID_FIRST_RESPONDER ?? 9375152), | ||
HELP: Number(Config?.EXPENSIFY_ACCOUNT_ID_HELP ?? -1), | ||
INTEGRATION_TESTING_CREDS: Number(Config?.EXPENSIFY_ACCOUNT_ID_INTEGRATION_TESTING_CREDS ?? -1), | ||
NOTIFICATIONS: Number(Config?.EXPENSIFY_ACCOUNT_ID_NOTIFICATIONS ?? 11665625), | ||
PAYROLL: Number(Config?.EXPENSIFY_ACCOUNT_ID_PAYROLL ?? 9679724), | ||
QA: Number(Config?.EXPENSIFY_ACCOUNT_ID_QA ?? 3126513), | ||
QA_TRAVIS: Number(Config?.EXPENSIFY_ACCOUNT_ID_QA_TRAVIS ?? 8595733), | ||
|
@@ -1408,6 +1410,7 @@ const CONST = { | |
this.EMAIL.FIRST_RESPONDER, | ||
this.EMAIL.HELP, | ||
this.EMAIL.INTEGRATION_TESTING_CREDS, | ||
this.EMAIL.NOTIFICATIONS, | ||
this.EMAIL.PAYROLL, | ||
this.EMAIL.QA, | ||
this.EMAIL.QA_TRAVIS, | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import {FormSubmitProps, FormSubmitRef} from './types'; | ||
|
||
function FormSubmit({style, children}: FormSubmitProps, ref: FormSubmitRef) { | ||
return ( | ||
<View | ||
ref={ref} | ||
style={style} | ||
> | ||
{children} | ||
</View> | ||
); | ||
} | ||
|
||
FormSubmit.displayName = 'FormSubmit'; | ||
|
||
export default React.forwardRef(FormSubmit); |
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,12 @@ | ||
import React, {ForwardedRef} from 'react'; | ||
import {StyleProp, View, ViewStyle} from 'react-native'; | ||
|
||
type FormSubmitProps = { | ||
children: React.ReactNode; | ||
onSubmit: () => void; | ||
style?: StyleProp<ViewStyle>; | ||
}; | ||
|
||
type FormSubmitRef = ForwardedRef<View>; | ||
|
||
export type {FormSubmitProps, FormSubmitRef}; |
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 |
---|---|---|
|
@@ -1218,7 +1218,7 @@ function getOptions( | |
} | ||
|
||
// Exclude the current user from the personal details list | ||
const optionsToExclude = [{login: currentUserLogin}]; | ||
const optionsToExclude = [{login: currentUserLogin}, {login: CONST.EMAIL.NOTIFICATIONS}]; | ||
|
||
// If we're including selected options from the search results, we only want to exclude them if the search input is empty | ||
// This is because on certain pages, we show the selected options at the top when the search input is empty | ||
|
@@ -1240,6 +1240,11 @@ function getOptions( | |
break; | ||
} | ||
|
||
// Skip [email protected] | ||
if (reportOption.login === CONST.EMAIL.NOTIFICATIONS) { | ||
continue; | ||
} | ||
|
||
const isCurrentUserOwnedPolicyExpenseChatThatCouldShow = | ||
reportOption.isPolicyExpenseChat && reportOption.ownerAccountID === currentUserAccountID && includeOwnedWorkspaceChats && !reportOption.isArchivedRoom; | ||
|
||
|
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