Initial React project

This commit is contained in:
Johan
2026-03-13 00:37:38 +01:00
parent 39f3381467
commit 051b73653d
36 changed files with 411 additions and 240 deletions

View File

@@ -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 />;
}