mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
fix(cabinet): Lava top-up return route + Telegram-unavailable card overflow
- Lava returns to a path-based result URL (/balance/top-up/result/:method) because Lava Business rejects query strings in success/fail URLs. Add the route and read the method from the path param as a fallback (alongside ?method=) so external-browser redirects still poll the right payment. Pairs with the backend fix. - ConnectedAccounts: the "Привязка Telegram временно недоступна" message overflowed the card (it sat in the non-shrinking action column and never wrapped). Constrain its width and wrap it (max-w + break-words) so it stays inside the card. Verified by rendering. Both reported in the Bedolaga bug topic.
This commit is contained in:
12
src/App.tsx
12
src/App.tsx
@@ -408,6 +408,18 @@ function App() {
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
{/* Path-based method variant: some providers (Lava) reject return URLs that carry a
|
||||
query string, so the method is encoded in the path instead of ?method=. */}
|
||||
<Route
|
||||
path="/balance/top-up/result/:method"
|
||||
element={
|
||||
<ProtectedRoute withLayout={false}>
|
||||
<LazyPage>
|
||||
<TopUpResult />
|
||||
</LazyPage>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/balance/top-up/:methodId"
|
||||
element={
|
||||
|
||||
Reference in New Issue
Block a user