-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: streamline SmartTransactionsBannerAlert logic
- Replace inline Redux selector with `getSmartTransactionsOptInStatusInternal` - Add `getSmartTransactionsMigrationAppliedInternal` for consistent state handling - Centralize banner visibility logic in `alertConditions` for clarity - Consolidate alert dismissal logic in `dismissAlert` and remove redundant `dispatch` - Simplify state typing and remove unused types - Merge duplicate dismissal tests for shared functionality Alert state is now managed via AlertController's `setAlertEnabledness`. Selectors are reusable, logic is more maintainable, and tests better reflect component behavior.
- Loading branch information
1 parent
ab5c1d7
commit 105d90d
Showing
3 changed files
with
53 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters