|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
|
import { lazy } from 'react' |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
Route, |
|
|
|
|
Redirect, |
|
|
|
|
@ -9,19 +11,19 @@ import { PAGES } from 'config' |
|
|
|
|
|
|
|
|
|
import { useLexicsConfig } from 'features/LexicsStore' |
|
|
|
|
|
|
|
|
|
import { HomePage } from 'features/HomePage' |
|
|
|
|
import { TeamPage } from 'features/TeamPage' |
|
|
|
|
import { MatchPage } from 'features/MatchPage' |
|
|
|
|
import { PlayerPage } from 'features/PlayerPage' |
|
|
|
|
import { TournamentPage } from 'features/TournamentPage' |
|
|
|
|
import { ExtendedSearchStore, ExtendedSearchPage } from 'features/ExtendedSearchPage' |
|
|
|
|
import { UserAccount } from 'features/UserAccount' |
|
|
|
|
|
|
|
|
|
import { MatchSwitchesStore } from 'features/MatchSwitches' |
|
|
|
|
import { UserFavoritesStore } from 'features/UserFavorites/store' |
|
|
|
|
import { MatchPopupStore } from 'features/MatchPopup' |
|
|
|
|
import { MatchPopup, MatchPopupStore } from 'features/MatchPopup' |
|
|
|
|
import { BuyMatchPopup, BuyMatchPopupStore } from 'features/BuyMatchPopup' |
|
|
|
|
|
|
|
|
|
const HomePage = lazy(() => import('features/HomePage')) |
|
|
|
|
const TeamPage = lazy(() => import('features/TeamPage')) |
|
|
|
|
const MatchPage = lazy(() => import('features/MatchPage')) |
|
|
|
|
const PlayerPage = lazy(() => import('features/PlayerPage')) |
|
|
|
|
const TournamentPage = lazy(() => import('features/TournamentPage')) |
|
|
|
|
const UserAccount = lazy(() => import('features/UserAccount')) |
|
|
|
|
|
|
|
|
|
export const AuthenticatedApp = () => { |
|
|
|
|
useLexicsConfig(indexLexics) |
|
|
|
|
|
|
|
|
|
@ -31,6 +33,7 @@ export const AuthenticatedApp = () => { |
|
|
|
|
<ExtendedSearchStore> |
|
|
|
|
<MatchPopupStore> |
|
|
|
|
<BuyMatchPopupStore> |
|
|
|
|
<MatchPopup /> |
|
|
|
|
<BuyMatchPopup /> |
|
|
|
|
|
|
|
|
|
{/* в Switch как прямой children можно рендерить только Route или Redirect */} |
|
|
|
|
|