[PR #4647] [MERGED] Simplify Modals component by destructuring modal.options instead of passing options one by one #31433

Closed
opened 2026-04-18 07:40:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4647
Author: @joel-jeremy
Created: 3/18/2025
Status: Merged
Merged: 3/18/2025
Merged by: @joel-jeremy

Base: masterHead: simplify-modals-component


📝 Commits (2)

📊 Changes

2 files changed (+58 additions, -333 deletions)

View changed files

📝 packages/desktop-client/src/components/Modals.tsx (+52 -333)
upcoming-release-notes/4647.md (+6 -0)

📄 Description

Simplify Modals component by destructuring modal.options instead of one by one. This would remove the need to modify Modals component to pass in new option whenever a new one is added.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/4647 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 3/18/2025 **Status:** ✅ Merged **Merged:** 3/18/2025 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `simplify-modals-component` --- ### 📝 Commits (2) - [`008c328`](https://github.com/actualbudget/actual/commit/008c32857484b7e47de7c908bb4db02d36dba73d) Simplify Modals component - [`f2dc693`](https://github.com/actualbudget/actual/commit/f2dc693834b293f5752d604e13d93b0144e9017e) Release notes ### 📊 Changes **2 files changed** (+58 additions, -333 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/Modals.tsx` (+52 -333) ➕ `upcoming-release-notes/4647.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> Simplify Modals component by destructuring `modal.options` instead of one by one. This would remove the need to modify Modals component to pass in new option whenever a new one is added. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 07:40:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#31433