Initial React project
This commit is contained in:
@@ -17,6 +17,7 @@ import { StoriesPage } from './presentation/stories/pages/StoriesPage';
|
||||
import { NewsletterPage } from './presentation/newsletter/pages/NewsletterPage';
|
||||
import { ForVirksomhederPage } from './presentation/companies/pages/ForVirksomhederPage';
|
||||
import { JobSearchersPage } from './presentation/jobseekers/pages/JobSearchersPage';
|
||||
import { ContactPage } from './presentation/contact/pages/ContactPage';
|
||||
import {
|
||||
SimulatorPage,
|
||||
type SimulatorEvaluationSelection,
|
||||
@@ -39,6 +40,7 @@ function App() {
|
||||
const isNewsletterRoute = useMemo(() => window.location.pathname === '/newsletter', []);
|
||||
const isCompaniesRoute = useMemo(() => window.location.pathname === '/for-virksomheder' || window.location.pathname === '/virksomheder', []);
|
||||
const isJobseekersRoute = useMemo(() => window.location.pathname === '/for-jobsogere' || window.location.pathname === '/jobsearchers', []);
|
||||
const isContactRoute = useMemo(() => window.location.pathname === '/kontakt' || window.location.pathname === '/contact', []);
|
||||
const isJobordbogenEntryRoute = useMemo(() => window.location.pathname.startsWith('/jobordbogen/') && window.location.pathname !== '/jobordbogen/', []);
|
||||
const isJobordbogenRoute = useMemo(() => window.location.pathname === '/jobordbogen' || window.location.pathname === '/academy', []);
|
||||
const initialAuthenticated = useMemo(() => Boolean(window.localStorage.getItem('token')), []);
|
||||
@@ -125,6 +127,10 @@ function App() {
|
||||
return <JobSearchersPage />;
|
||||
}
|
||||
|
||||
if (isContactRoute) {
|
||||
return <ContactPage />;
|
||||
}
|
||||
|
||||
if (isJobordbogenEntryRoute) {
|
||||
return <JobordbogenEntryPage />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user