-
Notifications
You must be signed in to change notification settings - Fork 3.7k
refactor trackExpense #79944
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
refactor trackExpense #79944
Changes from all commits
3fe4d80
52418f1
a006e4e
2722d6e
1e57df9
3ecde63
a79dcb2
d8d2905
24e8cc1
a2d269a
0e4bdbc
8abcb6d
a1b94a5
c934736
f1d635d
05ae650
c11382d
bbcdaf0
60f348f
ed9e3d7
8b5611e
3312747
f48c5fb
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 |
|---|---|---|
|
|
@@ -104,6 +104,7 @@ import CONST from '@src/CONST'; | |
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
| import ROUTES from '@src/ROUTES'; | ||
| import type SCREENS from '@src/SCREENS'; | ||
| import {validTransactionDraftIDsSelector} from '@src/selectors/TransactionDraft'; | ||
| import type {PolicyTagLists, RecentlyUsedCategories, Report} from '@src/types/onyx'; | ||
| import type {Participant} from '@src/types/onyx/IOU'; | ||
| import type {PaymentMethodType} from '@src/types/onyx/OriginalMessage'; | ||
|
|
@@ -217,6 +218,7 @@ function IOURequestStepConfirmation({ | |
| const [userLocation] = useOnyx(ONYXKEYS.USER_LOCATION); | ||
| const [quickAction] = useOnyx(ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE); | ||
| const [isSelfTourViewed = false] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector}); | ||
| const [draftTransactionIDs] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_DRAFT, {selector: validTransactionDraftIDsSelector}); | ||
|
|
||
| const reportAttributesDerived = useReportAttributes(); | ||
| const [recentlyUsedDestinations] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_RECENTLY_USED_DESTINATIONS}${policyID}`); | ||
|
|
@@ -688,7 +690,7 @@ function IOURequestStepConfirmation({ | |
| policyRecentlyUsedCurrencies: policyRecentlyUsedCurrencies ?? [], | ||
| quickAction, | ||
| existingTransactionDraft, | ||
| draftTransactionIDs: transactionIDs, | ||
| draftTransactionIDs, | ||
|
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.
Passing Useful? React with 👍 / 👎.
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. @codex this looks intentional cc @dukenv0307 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. To use Codex here, create a Codex account and connect to github. |
||
| isSelfTourViewed, | ||
| betas, | ||
| personalDetails, | ||
|
|
@@ -733,6 +735,7 @@ function IOURequestStepConfirmation({ | |
| betas, | ||
| personalDetails, | ||
| isGPSDistanceRequest, | ||
| draftTransactionIDs, | ||
| ], | ||
| ); | ||
|
|
||
|
|
@@ -897,6 +900,7 @@ function IOURequestStepConfirmation({ | |
| quickAction, | ||
| recentWaypoints, | ||
| betas, | ||
| draftTransactionIDs, | ||
| isSelfTourViewed, | ||
| }); | ||
| } | ||
|
|
@@ -926,6 +930,7 @@ function IOURequestStepConfirmation({ | |
| quickAction, | ||
| recentWaypoints, | ||
| betas, | ||
| draftTransactionIDs, | ||
| isSelfTourViewed, | ||
| ], | ||
| ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above