Skip to content

Commit e12e3d2

Browse files
committed
Setter title i layout-config for innlogget seksjon
1 parent b80ef17 commit e12e3d2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/nextjs/src/components/layouts/frontpage-loggedin-section/FrontpageLoggedinSectionLayout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const FrontpageLoggedinSectionLayout = ({ layoutProps, pageProps }: Props
4444

4545
const { header, mypage } = config;
4646
const title = yourServicesText('yourServices');
47+
layoutProps.config.title = title; //for at kortene i region skal kunne plukke opp title til analytics
4748

4849
return (
4950
<AuthDependantRender renderOn={'loggedIn'}>

packages/nextjs/src/types/component-props/layouts/frontpage-loggedin-section.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface FrontpageLoggedinSectionLayoutProps extends LayoutBaseProps {
88
regions: Regions<'cards'>;
99
config: {
1010
header: string;
11+
title: string;
1112
mypage: {
1213
link: LinkSelectable;
1314
};

0 commit comments

Comments
 (0)