|
|
|
|
@ -19,13 +19,15 @@ import { JoinMatchPage } from 'features/JoinMatchPage' |
|
|
|
|
import { JoinMatchPageRFEF } from 'features/JoinMatchPageRFEF' |
|
|
|
|
|
|
|
|
|
import { AuthenticatedApp } from './AuthenticatedApp' |
|
|
|
|
import { checkPage } from '../../helpers/checkPage' |
|
|
|
|
import { PAGES } from '../../config' |
|
|
|
|
|
|
|
|
|
setClientTitleAndDescription(client.title, client.description) |
|
|
|
|
|
|
|
|
|
const Main = () => { |
|
|
|
|
const { loadingUser, user } = useAuthStore() |
|
|
|
|
|
|
|
|
|
if (!user && isMatchPage()) return <JoinMatchPage /> |
|
|
|
|
if (!user && (isMatchPage() || checkPage(PAGES.tournament))) return <JoinMatchPage /> |
|
|
|
|
if (!user && isMatchPageRFEF()) return <JoinMatchPageRFEF /> |
|
|
|
|
|
|
|
|
|
if (user && isMatchPageRFEF()) { |
|
|
|
|
|