Skip to content
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

Allow Adding a category to a Split Bill #27936

Merged
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ad42f5a
re-test
rezkiy37 Sep 20, 2023
d07017b
connect report of participants of MoneyRequestCategoryPage
rezkiy37 Sep 20, 2023
52f20c9
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 20, 2023
16a1bba
attach category to split bill request
rezkiy37 Sep 20, 2023
5f17411
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 21, 2023
576ad93
fix crash when a participant a workspace
rezkiy37 Sep 21, 2023
f4f86d8
fix policy and report props of MoneyRequestConfirmationList
rezkiy37 Sep 21, 2023
e7ba3fc
fix props
rezkiy37 Sep 21, 2023
aa8f4f6
fix adding recently categories
rezkiy37 Sep 21, 2023
495894e
add recently categories for split bills optimistic
rezkiy37 Sep 21, 2023
361b880
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 21, 2023
cd5a6c2
use one withOnyx
rezkiy37 Sep 21, 2023
0857f55
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 22, 2023
57b61e5
add comments
rezkiy37 Sep 22, 2023
a036c4d
move isPolicyExpenseChat to parent
rezkiy37 Sep 22, 2023
ddcf5d6
hack onyx forwarding
rezkiy37 Sep 22, 2023
36b6951
fix props types
rezkiy37 Sep 22, 2023
f6439a9
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 25, 2023
fc7e639
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 26, 2023
0bcda51
unify a fix to get report id on confirm page
rezkiy37 Sep 26, 2023
1602707
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 28, 2023
6b581a9
clarify comment
rezkiy37 Sep 28, 2023
f45ad55
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 28, 2023
d21274f
unify iou report id getter
rezkiy37 Sep 28, 2023
5a5dc17
unify adding a category to recently used
rezkiy37 Sep 28, 2023
43144a9
revert a fix
rezkiy37 Sep 29, 2023
31e4209
extend getIOUReportID
rezkiy37 Sep 29, 2023
0584362
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Sep 29, 2023
3563a7c
fix unit-tests
rezkiy37 Sep 29, 2023
c6d9786
simplify condition
rezkiy37 Sep 29, 2023
2a061f0
Revert "fix unit-tests"
rezkiy37 Sep 29, 2023
b8dcf8d
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Oct 2, 2023
56cfc89
implement buildOptimisticPolicyRecentlyUsedCategories
rezkiy37 Oct 2, 2023
87154dc
remove extra helper
rezkiy37 Oct 2, 2023
586cc49
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Oct 2, 2023
864154c
unify
rezkiy37 Oct 2, 2023
4c3233e
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Oct 3, 2023
733d229
clear category on go back
rezkiy37 Oct 3, 2023
773b8a7
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Oct 4, 2023
df19f03
clear values on start confirm
rezkiy37 Oct 4, 2023
e0193d2
Merge branch 'main' of https://github.com/rezkiy37/Expensify into fix…
rezkiy37 Oct 9, 2023
585d6a2
simplify combining array
rezkiy37 Oct 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/components/MoneyRequestConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ const propTypes = {
/** Whether the money request is a distance request */
isDistanceRequest: PropTypes.bool,

/** A flag for verifying that the current report is a workspace */
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
isPolicyExpenseChat: PropTypes.bool,

/* Onyx Props */
/** Collection of categories attached to a policy */
policyCategories: PropTypes.objectOf(categoryPropTypes),
Expand Down Expand Up @@ -173,6 +176,7 @@ const defaultProps = {
transaction: {},
mileageRate: {unit: CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES, rate: 0, currency: 'USD'},
isDistanceRequest: false,
isPolicyExpenseChat: false,
};

function MoneyRequestConfirmationList(props) {
Expand All @@ -190,19 +194,16 @@ function MoneyRequestConfirmationList(props) {
const distance = lodashGet(transaction, 'routes.route0.distance', 0);
const shouldCalculateDistanceAmount = props.isDistanceRequest && props.iouAmount === 0;

// A flag for verifying that the current report is a sub-report of a workspace chat
const isPolicyExpenseChat = useMemo(() => ReportUtils.isPolicyExpenseChat(ReportUtils.getRootParentReport(ReportUtils.getReport(props.reportID))), [props.reportID]);

// A flag for showing the categories field
const shouldShowCategories = isPolicyExpenseChat && Permissions.canUseCategories(props.betas) && OptionsListUtils.hasEnabledOptions(_.values(props.policyCategories));
const shouldShowCategories = props.isPolicyExpenseChat && Permissions.canUseCategories(props.betas) && OptionsListUtils.hasEnabledOptions(_.values(props.policyCategories));
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved

// Fetches the first tag list of the policy
const policyTag = PolicyUtils.getTag(props.policyTags);
const policyTagList = lodashGet(policyTag, 'tags', {});
const policyTagListName = lodashGet(policyTag, 'name', translate('common.tag'));
const canUseTags = Permissions.canUseTags(props.betas);
// A flag for showing the tags field
const shouldShowTags = isPolicyExpenseChat && canUseTags && OptionsListUtils.hasEnabledOptions(_.values(policyTagList));
const shouldShowTags = props.isPolicyExpenseChat && canUseTags && OptionsListUtils.hasEnabledOptions(_.values(policyTagList));

// A flag for showing the billable field
const shouldShowBillable = canUseTags && !lodashGet(props.policy, 'disabledFields.defaultBillable', true);
Expand Down
65 changes: 48 additions & 17 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,16 @@ function getMoneyRequestInformation(
billable,
);

const uniquePolicyRecentlyUsedCategories = allRecentlyUsedCategories
? _.filter(
allRecentlyUsedCategories[`${ONYXKEYS.COLLECTION.POLICY_RECENTLY_USED_CATEGORIES}${iouReport.policyID}`],
(recentlyUsedPolicyCategory) => recentlyUsedPolicyCategory !== category,
)
: [];
const optimisticPolicyRecentlyUsedCategories = [category, ...uniquePolicyRecentlyUsedCategories];
let optimisticPolicyRecentlyUsedCategories;
if (category) {
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
const uniquePolicyRecentlyUsedCategories = allRecentlyUsedCategories
? _.filter(
allRecentlyUsedCategories[`${ONYXKEYS.COLLECTION.POLICY_RECENTLY_USED_CATEGORIES}${iouReport.policyID}`],
(recentlyUsedPolicyCategory) => recentlyUsedPolicyCategory !== category,
)
: [];
optimisticPolicyRecentlyUsedCategories = [category, ...uniquePolicyRecentlyUsedCategories];
}

const optimisticPolicyRecentlyUsedTags = {};
const recentlyUsedPolicyTags = allRecentlyUsedTags[`${ONYXKEYS.COLLECTION.POLICY_RECENTLY_USED_TAGS}${iouReport.policyID}`];
Expand Down Expand Up @@ -732,11 +735,12 @@ function requestMoney(
* @param {Number} amount - always in the smallest unit of the currency
* @param {String} comment
* @param {String} currency
* @param {String} category
* @param {String} existingSplitChatReportID - the report ID where the split bill happens, could be a group chat or a workspace chat
*
* @return {Object}
*/
function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, existingSplitChatReportID = '') {
function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, category, existingSplitChatReportID = '') {
const currentUserEmailForIOUSplit = OptionsListUtils.addSMSDomainIfPhoneNumber(currentUserLogin);
const participantAccountIDs = _.map(participants, (participant) => Number(participant.accountID));
const existingSplitChatReport =
Expand All @@ -760,6 +764,10 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
'',
'',
`${Localize.translateLocal('iou.splitBill')} ${Localize.translateLocal('common.with')} ${formattedParticipants} [${DateUtils.getDBTime().slice(0, 10)}]`,
undefined,
undefined,
undefined,
category,
);

// Note: The created action must be optimistically generated before the IOU action so there's no chance that the created action appears after the IOU action in the chat
Expand Down Expand Up @@ -886,9 +894,12 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco

const hasMultipleParticipants = participants.length > 1;
_.each(participants, (participant) => {
// In case the participant is a worskapce, email & accountID should remain undefined and won't be used in the rest of this code
const email = isOwnPolicyExpenseChat ? '' : OptionsListUtils.addSMSDomainIfPhoneNumber(participant.login).toLowerCase();
const accountID = isOwnPolicyExpenseChat ? 0 : Number(participant.accountID);
// In a case when a participant is a workspace, even when a current user is not an owner of the workspace
const isPolicyExpenseChat = ReportUtils.isPolicyExpenseChat(participant);

// In case the participant is a workspace, email & accountID should remain undefined and won't be used in the rest of this code
const email = isOwnPolicyExpenseChat || isPolicyExpenseChat ? '' : OptionsListUtils.addSMSDomainIfPhoneNumber(participant.login).toLowerCase();
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
const accountID = isOwnPolicyExpenseChat || isPolicyExpenseChat ? 0 : Number(participant.accountID);
if (email === currentUserEmailForIOUSplit) {
return;
}
Expand Down Expand Up @@ -940,6 +951,11 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
'',
CONST.IOU.MONEY_REQUEST_TYPE.SPLIT,
splitTransaction.transactionID,
undefined,
undefined,
undefined,
undefined,
category,
);

// STEP 4: Build optimistic reportActions. We need:
Expand Down Expand Up @@ -980,6 +996,18 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
oneOnOneReportPreviewAction = ReportUtils.buildOptimisticReportPreview(oneOnOneChatReport, oneOnOneIOUReport);
}

// Add category to optimistic policy recently used categories when a participant is a workspace
let optimisticPolicyRecentlyUsedCategories;
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
if (category && isPolicyExpenseChat) {
const uniquePolicyRecentlyUsedCategories = allRecentlyUsedCategories
? _.filter(
allRecentlyUsedCategories[`${ONYXKEYS.COLLECTION.POLICY_RECENTLY_USED_CATEGORIES}${participant.policyID}`],
(recentlyUsedPolicyCategory) => recentlyUsedPolicyCategory !== category,
)
: [];
optimisticPolicyRecentlyUsedCategories = [category, ...uniquePolicyRecentlyUsedCategories];
}

// STEP 5: Build Onyx Data
const [oneOnOneOptimisticData, oneOnOneSuccessData, oneOnOneFailureData] = buildOnyxDataForMoneyRequest(
oneOnOneChatReport,
Expand All @@ -990,7 +1018,7 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
oneOnOneIOUAction,
oneOnOnePersonalDetailListAction,
oneOnOneReportPreviewAction,
[],
optimisticPolicyRecentlyUsedCategories,
{},
isNewOneOnOneChatReport,
shouldCreateNewOneOnOneIOUReport,
Expand Down Expand Up @@ -1040,11 +1068,11 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
* @param {Number} amount - always in smallest currency unit
* @param {String} comment
* @param {String} currency
* @param {String} category
* @param {String} existingSplitChatReportID - Either a group DM or a workspace chat
*/
function splitBill(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, existingSplitChatReportID = '') {
const {splitData, splits, onyxData} = createSplitsAndOnyxData(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, existingSplitChatReportID);

function splitBill(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, category, existingSplitChatReportID = '') {
const {splitData, splits, onyxData} = createSplitsAndOnyxData(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, category, existingSplitChatReportID);
API.write(
'SplitBill',
{
Expand All @@ -1053,6 +1081,7 @@ function splitBill(participants, currentUserLogin, currentUserAccountID, amount,
splits: JSON.stringify(splits),
currency,
comment,
category,
transactionID: splitData.transactionID,
reportActionID: splitData.reportActionID,
createdReportActionID: splitData.createdReportActionID,
Expand All @@ -1073,9 +1102,10 @@ function splitBill(participants, currentUserLogin, currentUserAccountID, amount,
* @param {Number} amount - always in smallest currency unit
* @param {String} comment
* @param {String} currency
* @param {String} category
*/
function splitBillAndOpenReport(participants, currentUserLogin, currentUserAccountID, amount, comment, currency) {
const {splitData, splits, onyxData} = createSplitsAndOnyxData(participants, currentUserLogin, currentUserAccountID, amount, comment, currency);
function splitBillAndOpenReport(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, category) {
const {splitData, splits, onyxData} = createSplitsAndOnyxData(participants, currentUserLogin, currentUserAccountID, amount, comment, currency, category);

API.write(
'SplitBillAndOpenReport',
Expand All @@ -1085,6 +1115,7 @@ function splitBillAndOpenReport(participants, currentUserLogin, currentUserAccou
splits: JSON.stringify(splits),
currency,
comment,
category,
transactionID: splitData.transactionID,
reportActionID: splitData.reportActionID,
createdReportActionID: splitData.createdReportActionID,
Expand Down
30 changes: 22 additions & 8 deletions src/pages/iou/MoneyRequestCategoryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import lodashGet from 'lodash/get';
import {withOnyx} from 'react-native-onyx';
import compose from '../../libs/compose';
import ROUTES from '../../ROUTES';
import Navigation from '../../libs/Navigation/Navigation';
import useLocalize from '../../hooks/useLocalize';
Expand Down Expand Up @@ -83,11 +84,24 @@ MoneyRequestCategoryPage.displayName = 'MoneyRequestCategoryPage';
MoneyRequestCategoryPage.propTypes = propTypes;
MoneyRequestCategoryPage.defaultProps = defaultProps;

export default withOnyx({
report: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${lodashGet(route, 'params.reportID', '')}`,
},
iou: {
key: ONYXKEYS.IOU,
},
})(MoneyRequestCategoryPage);
export default compose(
withOnyx({
iou: {
key: ONYXKEYS.IOU,
},
}),
// eslint-disable-next-line rulesdir/no-multiple-onyx-in-file
withOnyx({
report: {
key: ({route, iou}) => {
let reportID = lodashGet(route, 'params.reportID', '');
if (!reportID) {
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
// When the money request or split bill creation flow is initialized on Global Create, the reportID is not passed as a navigation parameter.
// Get the report id from the participants list on the IOU object stored in Onyx.
reportID = lodashGet(iou, 'participants.0.reportID', '');
}
return `${ONYXKEYS.COLLECTION.REPORT}${reportID}`;
},
},
}),
)(MoneyRequestCategoryPage);
17 changes: 14 additions & 3 deletions src/pages/iou/MoneyRequestTagPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,25 @@ MoneyRequestTagPage.defaultProps = defaultProps;

export default compose(
withOnyx({
report: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${lodashGet(route, 'params.reportID')}`,
},
iou: {
key: ONYXKEYS.IOU,
},
}),
// eslint-disable-next-line rulesdir/no-multiple-onyx-in-file
withOnyx({
report: {
key: ({route, iou}) => {
let reportID = lodashGet(route, 'params.reportID', '');
if (!reportID) {
// When the money request or split bill creation flow is initialized on Global Create, the reportID is not passed as a navigation parameter.
// Get the report id from the participants list on the IOU object stored in Onyx.
reportID = lodashGet(iou, 'participants.0.reportID', '');
}
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
return `${ONYXKEYS.COLLECTION.REPORT}${reportID}`;
},
},
}),
// eslint-disable-next-line rulesdir/no-multiple-onyx-in-file
withOnyx({
policyTags: {
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY_TAGS}${report ? report.policyID : '0'}`,
Expand Down
7 changes: 6 additions & 1 deletion src/pages/iou/steps/MoneyRequestConfirmPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function MoneyRequestConfirmPage(props) {
}),
[props.iou.participants, props.personalDetails],
);
const isPolicyExpenseChat = useMemo(() => ReportUtils.isPolicyExpenseChat(ReportUtils.getRootParentReport(props.report)), [props.report]);
const isManualRequestDM = props.selectedTab === CONST.TAB.MANUAL && iouType.current === CONST.IOU.MONEY_REQUEST_TYPE.REQUEST;

useEffect(() => {
Expand Down Expand Up @@ -197,6 +198,7 @@ function MoneyRequestConfirmPage(props) {
props.iou.amount,
trimmedComment,
props.iou.currency,
props.iou.category,
reportID.current,
);
return;
Expand All @@ -211,6 +213,7 @@ function MoneyRequestConfirmPage(props) {
props.iou.amount,
trimmedComment,
props.iou.currency,
props.iou.category,
);
return;
}
Expand All @@ -237,6 +240,7 @@ function MoneyRequestConfirmPage(props) {
props.currentUserPersonalDetails.login,
props.currentUserPersonalDetails.accountID,
props.iou.currency,
props.iou.category,
props.iou.receiptPath,
props.iou.receiptSource,
isDistanceRequest,
Expand Down Expand Up @@ -337,6 +341,7 @@ function MoneyRequestConfirmPage(props) {
receiptSource={props.iou.receiptSource}
iouType={iouType.current}
reportID={reportID.current}
isPolicyExpenseChat={isPolicyExpenseChat}
// The participants can only be modified when the action is initiated from directly within a group chat and not the floating-action-button.
// This is because when there is a group of people, say they are on a trip, and you have some shared expenses with some of the people,
// but not all of them (maybe someone skipped out on dinner). Then it's nice to be able to select/deselect people from the group chat bill
Expand Down Expand Up @@ -376,7 +381,7 @@ export default compose(
key: ({route, iou}) => {
let reportID = lodashGet(route, 'params.reportID', '');
if (!reportID) {
// When the money request creation flow is initialized on Global Create, the reportID is not passed as a navigation parameter.
// When the money request or split bill creation flow is initialized on Global Create, the reportID is not passed as a navigation parameter.
// Get the report id from the participants list on the IOU object stored in Onyx.
reportID = lodashGet(iou, 'participants.0.reportID', '');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const defaultProps = {
function MoneyRequestParticipantsPage({iou, selectedTab, route}) {
const {translate} = useLocalize();
const prevMoneyRequestId = useRef(iou.id);
const isNewReportIDSelectedLocally = useRef(false);
const optionsSelectorRef = useRef();
const iouType = useRef(lodashGet(route, 'params.iouType', ''));
const reportID = useRef(lodashGet(route, 'params.reportID', ''));
Expand All @@ -63,19 +62,7 @@ function MoneyRequestParticipantsPage({iou, selectedTab, route}) {
setHeaderTitle(_.isEmpty(iou.participants) ? translate('tabSelector.manual') : translate('iou.split'));
}, [iou.participants, isDistanceRequest, translate]);

const navigateToRequestStep = (moneyRequestType, option) => {
if (option.reportID) {
isNewReportIDSelectedLocally.current = true;
IOU.setMoneyRequestId(`${moneyRequestType}${option.reportID}`);
Navigation.navigate(ROUTES.MONEY_REQUEST_CONFIRMATION.getRoute(moneyRequestType, option.reportID));
return;
}

IOU.setMoneyRequestId(moneyRequestType);
Navigation.navigate(ROUTES.MONEY_REQUEST_CONFIRMATION.getRoute(moneyRequestType, reportID.current));
};

const navigateToSplitStep = (moneyRequestType) => {
const navigateToConfirmationStep = (moneyRequestType) => {
IOU.setMoneyRequestId(moneyRequestType);
Navigation.navigate(ROUTES.MONEY_REQUEST_CONFIRMATION.getRoute(moneyRequestType, reportID.current));
rezkiy37 marked this conversation as resolved.
Show resolved Hide resolved
};
Expand All @@ -88,15 +75,15 @@ function MoneyRequestParticipantsPage({iou, selectedTab, route}) {
// ID in Onyx could change by initiating a new request in a separate browser tab or completing a request
if (prevMoneyRequestId.current !== iou.id) {
// The ID is cleared on completing a request. In that case, we will do nothing
if (iou.id && !isDistanceRequest && !isSplitRequest && !isNewReportIDSelectedLocally.current) {
if (iou.id && !isDistanceRequest && !isSplitRequest) {
navigateBack(true);
}
return;
}

// Reset the money request Onyx if the ID in Onyx does not match the ID from params
const moneyRequestId = `${iouType.current}${reportID.current}`;
const shouldReset = iou.id !== moneyRequestId && !isNewReportIDSelectedLocally.current;
const shouldReset = iou.id !== moneyRequestId;
if (shouldReset) {
IOU.resetMoneyRequestInfo(moneyRequestId);
}
Expand Down Expand Up @@ -126,8 +113,8 @@ function MoneyRequestParticipantsPage({iou, selectedTab, route}) {
ref={(el) => (optionsSelectorRef.current = el)}
participants={iou.participants}
onAddParticipants={IOU.setMoneyRequestParticipants}
navigateToRequest={(option) => navigateToRequestStep(CONST.IOU.MONEY_REQUEST_TYPE.REQUEST, option)}
navigateToSplit={() => navigateToSplitStep(CONST.IOU.MONEY_REQUEST_TYPE.SPLIT)}
navigateToRequest={() => navigateToConfirmationStep(CONST.IOU.MONEY_REQUEST_TYPE.REQUEST)}
navigateToSplit={() => navigateToConfirmationStep(CONST.IOU.MONEY_REQUEST_TYPE.SPLIT)}
safeAreaPaddingBottomStyle={safeAreaPaddingBottomStyle}
iouType={iouType.current}
isDistanceRequest={isDistanceRequest}
Expand Down
Loading
Loading