diff --git a/apps/web/.env b/apps/web/.env index c84d1f94..57f5ca22 100644 --- a/apps/web/.env +++ b/apps/web/.env @@ -1,4 +1,4 @@ SKIP_PREFLIGHT_CHECK=true HTTPS=true BROWSER=none -CI=false \ No newline at end of file +CI=false diff --git a/apps/web/src/components/Content.tsx b/apps/web/src/components/Content.tsx index f1e78240..c5031ffc 100644 --- a/apps/web/src/components/Content.tsx +++ b/apps/web/src/components/Content.tsx @@ -6,9 +6,9 @@ import { DebugPage, EmployeePage, EmployeeProfilePage, + HomePage, NotFoundPage, OrganizationStructurePage, - StartPage, UnderConstructionPage, } from '../pages' import { useUserInfo } from '../hooks/useUserInfo' @@ -20,8 +20,8 @@ export default function Content() { <> {isAuthenticated && ( - } /> - } /> + } /> + } /> } /> } /> } /> diff --git a/apps/web/src/components/header/Header.tsx b/apps/web/src/components/header/Header.tsx index 61b78dd4..e0a9ed0d 100644 --- a/apps/web/src/components/header/Header.tsx +++ b/apps/web/src/components/header/Header.tsx @@ -40,7 +40,13 @@ interface HeaderProps { } export default function Header({ darkMode, onChangeMode }: HeaderProps) { - const availablePages = ['/ansatte', '/kunder', '/kompetanse', '/organisasjon'] + const availablePages = [ + '/ansatte', + '/hjem', + '/kunder', + '/kompetanse', + '/organisasjon', + ] const activePage = useLocation().pathname const { isAuthenticated, userEmployeeProfile } = useUserInfo() @@ -56,6 +62,7 @@ export default function Header({ darkMode, onChangeMode }: HeaderProps) { function HeaderTabs() { return ( + { trackPageView({ - documentTitle: 'Start', + documentTitle: 'Hjem', }) - pageTitle('Start') + pageTitle('Hjem') }, [trackPageView]) return ( diff --git a/apps/web/src/pages/start/cards/Administration.ts b/apps/web/src/pages/home/cards/Administration.ts similarity index 100% rename from apps/web/src/pages/start/cards/Administration.ts rename to apps/web/src/pages/home/cards/Administration.ts diff --git a/apps/web/src/pages/start/cards/Communication.ts b/apps/web/src/pages/home/cards/Communication.ts similarity index 100% rename from apps/web/src/pages/start/cards/Communication.ts rename to apps/web/src/pages/home/cards/Communication.ts diff --git a/apps/web/src/pages/start/cards/IntroCard.tsx b/apps/web/src/pages/home/cards/IntroCard.tsx similarity index 100% rename from apps/web/src/pages/start/cards/IntroCard.tsx rename to apps/web/src/pages/home/cards/IntroCard.tsx diff --git a/apps/web/src/pages/start/cards/LinksCard.tsx b/apps/web/src/pages/home/cards/LinksCard.tsx similarity index 100% rename from apps/web/src/pages/start/cards/LinksCard.tsx rename to apps/web/src/pages/home/cards/LinksCard.tsx diff --git a/apps/web/src/pages/start/cards/MyEmployment.ts b/apps/web/src/pages/home/cards/MyEmployment.ts similarity index 100% rename from apps/web/src/pages/start/cards/MyEmployment.ts rename to apps/web/src/pages/home/cards/MyEmployment.ts diff --git a/apps/web/src/pages/start/cards/Other.ts b/apps/web/src/pages/home/cards/Other.ts similarity index 100% rename from apps/web/src/pages/start/cards/Other.ts rename to apps/web/src/pages/home/cards/Other.ts diff --git a/apps/web/src/pages/index.ts b/apps/web/src/pages/index.ts index 68090ca1..1c0733e3 100644 --- a/apps/web/src/pages/index.ts +++ b/apps/web/src/pages/index.ts @@ -6,5 +6,5 @@ export { default as EmployeePage } from './employee/EmployeePage' export { default as EmployeeProfilePage } from './employee/EmployeeProfilePage' export { default as NotFoundPage } from './other/NotFoundPage' export { default as OrganizationStructurePage } from './organizationStructure/OrganizationStructurePage' -export { default as StartPage } from './start/StartPage' +export { default as HomePage } from './home/HomePage' export { default as UnderConstructionPage } from './other/UnderConstructionPage'