-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Reuse existing QBD connection across workspaces #86909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 48 commits
9dfa52e
c0843c8
449d6ad
16eea2d
eb3eb5a
2dace0f
89b40ad
4cbcee0
f5aedbc
d1350cc
ea301fa
5b5c109
e536fb6
f930c8a
bf09195
e122220
5968cd1
c872b27
3e2e8fd
bf416ce
3a66454
4748f28
e9714cd
24ff078
8320bf2
4e3da84
2e1f1d1
0cc4290
eed1026
4cedc45
96f9bce
eb83c2b
c7de772
313bf0c
0ab336b
3819d31
64daeb8
536534c
6be81a2
4eb6ad8
2c10bae
3dcb931
ceb2fd9
fce5a62
e86df30
0354793
e7d4847
3f62dcd
c5e7e67
fc3ee20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
| import {adminPoliciesConnectedToQBDSelector} from '@src/selectors/Policy'; | ||
| import useOnyx from './useOnyx'; | ||
|
|
||
| function useAdminPoliciesConnectedToQBD() { | ||
| const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY); | ||
| return adminPoliciesConnectedToQBDSelector(policies); | ||
| } | ||
|
|
||
| export default useAdminPoliciesConnectedToQBD; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
| import {hasPoliciesConnectedToQBDSelector} from '@src/selectors/Policy'; | ||
| import useOnyx from './useOnyx'; | ||
|
|
||
| function useHasPoliciesConnectedToQBD() { | ||
| const [hasPolicies] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {selector: hasPoliciesConnectedToQBDSelector}); | ||
| return hasPolicies ?? false; | ||
| } | ||
|
|
||
| export default useHasPoliciesConnectedToQBD; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ import OutcomeScreenBase from '@components/MultifactorAuthentication/components/ | |
| import useLocalize from '@hooks/useLocalize'; | ||
| import variables from '@styles/variables'; | ||
|
|
||
| function ChangePINATMPage() { | ||
| function ChangePINAtATMPage() { | ||
| const {translate} = useLocalize(); | ||
|
|
||
| return ( | ||
|
|
@@ -18,6 +18,6 @@ function ChangePINATMPage() { | |
| ); | ||
| } | ||
|
|
||
| ChangePINATMPage.displayName = 'ChangePINATMPage'; | ||
| ChangePINAtATMPage.displayName = 'ChangePINAtATMPage'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we renaming this in this PR? Is this from a bad conflict resolution?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No, it's to fix this error that showed up since we've touched the file:
https://github.com/Expensify/App/actions/runs/23917005575/job/69753374824 |
||
|
|
||
| export default ChangePINATMPage; | ||
| export default ChangePINAtATMPage; | ||

Uh oh!
There was an error while loading. Please reload this page.