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:
ImportSpreadsheet.tsx
ImportSpreadsheetConfirmModal.tsx
DotIndicatorMessage.tsx
BookTravelButton.tsx
AccountSwitcher.tsx
ExportWithDropdownMenu.tsx
LocationPermissionModal/index.tsx
LocationPermissionModal/index.desktop.tsx
ContactPermissionModal/index.native.tsx
FocusModeNotification.tsx
SupportalPermissionDeniedModalProvider.tsx
DelegateNoAccessModalProvider.tsx
LockedAccountModalProvider.tsx
useFilesValidation.tsx
useCreateEmptyReportConfirmation.tsx
src/Expensify.tsx
TransactionReceiptModalContent.tsx
Issue Owner
Current Issue Owner: @
Issue Owner
Current Issue Owner: @ZhenjaHorbach
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:
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @ZhenjaHorbach