feat: replace payment modals with page-based navigation

- Add /balance/top-up route for payment method selection
- Add /balance/top-up/:methodId route for amount entry and payment
- Remove TopUpModal component (619 lines)
- Simplify InsufficientBalancePrompt to use navigate instead of modals
- Support ?amount and ?returnTo query params for cross-page data flow
- Fix nav isActive to highlight Balance on sub-routes
- Remove unused MainButton platform abstraction
- Increase toast accent opacity for better visibility
This commit is contained in:
c0mrade
2026-02-04 14:36:16 +03:00
parent 6e98a19d6b
commit 576893f5c6
13 changed files with 333 additions and 766 deletions

View File

@@ -14,7 +14,6 @@ import {
mountClosingBehavior,
disableClosingConfirmation,
mountBackButton,
mountMainButton,
bindThemeParamsCssVars,
bindViewportCssVars,
requestFullscreen,
@@ -66,12 +65,6 @@ if (!alreadyInitialized) {
} catch {
/* already mounted */
}
try {
mountMainButton();
} catch {
/* already mounted */
}
// Viewport — async, fullscreen зависит от смонтированного viewport
mountViewport()
.then(() => {