Reapply "feat(bonuses): экран «Бонусы» — уровень, серии, цели, история"

This reverts commit f6bc3da47b.
This commit is contained in:
tremble7681 committed 2026-10-06 20:51:29 +10:00
1 parent 205e6d6d10
commit 7034c6aaae
7 files changed
+512 -3

No files matched your search

+4
View File
@@ -13,6 +13,7 @@ import { DebugPage } from "@/pages/DebugPage";
import { MockPayPage } from "@/pages/MockPayPage";
import { FineDetailPage } from "@/pages/FineDetailPage";
import { NotificationsPage } from "@/pages/NotificationsPage";
import { BonusesPage } from "@/pages/BonusesPage";
/** Что известно при выборе родителя: параметры пути, строка запроса, вход. */
export interface ParentCtx {
@@ -52,6 +53,9 @@ export const ROUTES: AppRoute[] = [
// туда и возвращаем; без входа возвращаться некуда, кроме экрана входа.
{ path: "/dev", element: <DevLoginPage />, parent: ({ signedIn }) => (signedIn ? "/" : "/login") },
{ path: "/notifications", element: <NotificationsPage />, guard: "auth", parent: "/" },
// Бонусы открывают карточкой с главной и пушем «Бонус начислен» — оба
// случая возвращаются на главную.
{ path: "/bonuses", element: <BonusesPage />, guard: "auth", parent: "/" },
{ path: "/topup", element: <TopupPage />, guard: "auth", parent: "/" },
{ path: "/pay/:orderId", element: <PaymentPage />, guard: "auth", parent: "/" },
{ path: "/mock-pay/:orderId", element: <MockPayPage />, guard: "auth", parent: "/" },