fix: subscription route protected
This commit is contained in:
parent
b8fa8c4c75
commit
8ea2886cf5
@ -350,8 +350,14 @@ function App(): JSX.Element {
|
|||||||
path={routes.client.breathResult()}
|
path={routes.client.breathResult()}
|
||||||
element={<UserCallbacksPage />}
|
element={<UserCallbacksPage />}
|
||||||
/>
|
/>
|
||||||
<Route path={routes.client.wallpaper()} element={<WallpaperPage />} />
|
<Route
|
||||||
<Route path={routes.client.magicBall()} element={<MagicBallPage />} />
|
path={routes.client.wallpaper()}
|
||||||
|
element={<WallpaperPage />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path={routes.client.magicBall()}
|
||||||
|
element={<MagicBallPage />}
|
||||||
|
/>
|
||||||
<Route
|
<Route
|
||||||
path={routes.client.horoscopeBestiesResult()}
|
path={routes.client.horoscopeBestiesResult()}
|
||||||
element={<BestiesHoroscopeResult />}
|
element={<BestiesHoroscopeResult />}
|
||||||
|
|||||||
@ -297,7 +297,7 @@ export const getRouteBy = (status: UserStatus): string => {
|
|||||||
return routes.client.gender();
|
return routes.client.gender();
|
||||||
case "registred":
|
case "registred":
|
||||||
case "unsubscribed":
|
case "unsubscribed":
|
||||||
return routes.client.subscription();
|
return routes.client.trialPayment();
|
||||||
case "subscribed":
|
case "subscribed":
|
||||||
return routes.client.home();
|
return routes.client.home();
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user