Skip to content

[Due for payment 2026-03-24] [$250] Refactor ConfirmModal usage to useConfirmModal in IOU, Money Request, and Search pages #76694

@roryabraham

Description

@roryabraham

Coming from #68799 (comment)...

Problem

When every component mounts its own ConfirmModal in the component tree, it creates component bloat, memory overhead from multiple modal instances, and repetitive boilerplate code that makes the application harder to maintain.

Solution

Refactor ConfirmModal usage to useConfirmModal in the following files:

IOURequestStepConfirmation.tsx
IOURequestStepSubrate.tsx
IOURequestStepWaypoint.tsx
IOURequestStepScan/ReceiptView/index.tsx
DiscardChangesConfirmation/index.tsx
DiscardChangesConfirmation/index.native.tsx
SplitExpensePage.tsx
SearchPage.tsx
EmptySearchView.tsx
Search/index.tsx
useDeleteSavedSearch.tsx
MoneyRequestHeader.tsx
MoneyRequestReceiptView.tsx
MoneyRequestReportActionsList.tsx
MoneyRequestReportPreviewContent.tsx
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021996470697521719315
  • Upwork Job ID: 1996470697521719315
  • Last Price Increase: 2025-12-04
Issue OwnerCurrent Issue Owner: @

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions