diff --git a/apps/web/layouts/organization/standalone/standalone.tsx b/apps/web/layouts/organization/standalone/standalone.tsx index 5053000cbff6..e170c447de52 100644 --- a/apps/web/layouts/organization/standalone/standalone.tsx +++ b/apps/web/layouts/organization/standalone/standalone.tsx @@ -10,6 +10,7 @@ import { SkipToMainContent, } from '@island.is/web/components' import { PRELOADED_FONTS } from '@island.is/web/constants' +import { GlobalContextProvider } from '@island.is/web/context' import { OrganizationPage } from '@island.is/web/graphql/schema' import { useLinkResolver } from '@island.is/web/hooks' import { useI18n } from '@island.is/web/i18n' @@ -87,7 +88,7 @@ export const StandaloneLayout = ({ const featuredImage = seo?.image ?? organizationPage.featuredImage return ( - <> + {PRELOADED_FONTS.map((href, index) => { return ( @@ -270,6 +271,6 @@ export const StandaloneLayout = ({ url('/fonts/ibm-plex-sans-v7-latin-600.woff') format('woff'); } `} - + ) } diff --git a/apps/web/screens/Organization/Standalone/Home.tsx b/apps/web/screens/Organization/Standalone/Home.tsx index c02ac3699fb5..735fa0498920 100644 --- a/apps/web/screens/Organization/Standalone/Home.tsx +++ b/apps/web/screens/Organization/Standalone/Home.tsx @@ -11,6 +11,7 @@ import { QueryGetOrganizationPageArgs, } from '@island.is/web/graphql/schema' import { useNamespace } from '@island.is/web/hooks' +import useContentfulId from '@island.is/web/hooks/useContentfulId' import { StandaloneLayout } from '@island.is/web/layouts/organization/standalone' import type { Screen, ScreenContext } from '@island.is/web/types' import { CustomNextError } from '@island.is/web/units/errors' @@ -27,6 +28,11 @@ export interface StandaloneHomeProps { namespace: Record } +const LanguageToggleSetup = (props: { id: string }) => { + useContentfulId(props.id) + return null +} + const StandaloneHome: Screen< StandaloneHomeProps, StandaloneHomeScreenContext @@ -43,6 +49,7 @@ const StandaloneHome: Screen< isFrontpage={true} bannerTitle={n('bannerTitle', '')} > + {organizationPage.slices.map((slice) => { diff --git a/apps/web/screens/Organization/Standalone/ParentSubpage.tsx b/apps/web/screens/Organization/Standalone/ParentSubpage.tsx index ad4e08f629c9..66deea3cfed0 100644 --- a/apps/web/screens/Organization/Standalone/ParentSubpage.tsx +++ b/apps/web/screens/Organization/Standalone/ParentSubpage.tsx @@ -21,6 +21,7 @@ import { QueryGetOrganizationSubpageArgs, } from '@island.is/web/graphql/schema' import { useLinkResolver } from '@island.is/web/hooks' +import useContentfulId from '@island.is/web/hooks/useContentfulId' import { useI18n } from '@island.is/web/i18n' import { StandaloneLayout } from '@island.is/web/layouts/organization/standalone' import type { Screen, ScreenContext } from '@island.is/web/types' @@ -52,6 +53,11 @@ export interface StandaloneParentSubpageProps { namespace: Record } +const LanguageToggleSetup = (props: { ids: string[] }) => { + useContentfulId(...props.ids) + return null +} + const StandaloneParentSubpage: Screen< StandaloneParentSubpageProps, StandaloneParentSubpageScreenContext @@ -69,6 +75,9 @@ const StandaloneParentSubpage: Screen< return ( + diff --git a/apps/web/screens/queries/Organization.tsx b/apps/web/screens/queries/Organization.tsx index fea842378a77..2db3e7b83c9f 100644 --- a/apps/web/screens/queries/Organization.tsx +++ b/apps/web/screens/queries/Organization.tsx @@ -422,6 +422,7 @@ export const GET_ORGANIZATION_PARENT_SUBPAGE_QUERY = gql` $input: GetOrganizationParentSubpageInput! ) { getOrganizationParentSubpage(input: $input) { + id title childLinks { label