Skip to content

Commit

Permalink
fix(web): Change custom syslumenn pages config for header (#16299)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
mannipje and kodiakhq[bot] authored Oct 7, 2024
1 parent 8fbd08d commit ef8b3ef
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions apps/web/screens/Organization/Syslumenn/Auctions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1100,17 +1100,23 @@ Auctions.getProps = async ({ apolloClient, locale, req, res }) => {
),
])

const usingDefaultHeader: boolean = namespace['usingDefaultHeader'] ?? false

return {
organizationPage: getOrganizationPage,
subpage: getOrganizationSubpage,
syslumennAuctions: getSyslumennAuctions,
namespace,
showSearchInHeader: false,
themeConfig: !usingDefaultHeader
? {
headerButtonColorScheme: 'negative',
headerColorScheme: 'white',
}
: {},
}
}

export default withMainLayout(Auctions, {
headerButtonColorScheme: 'negative',
headerColorScheme: 'white',
footerVersion: 'organization',
})
10 changes: 8 additions & 2 deletions apps/web/screens/Organization/Syslumenn/Homestay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,17 +372,23 @@ Homestay.getProps = async ({ apolloClient, locale, req }) => {
throw new CustomNextError(404, 'Organization subpage not found')
}

const usingDefaultHeader: boolean = namespace['usingDefaultHeader'] ?? false

return {
organizationPage: getOrganizationPage,
subpage: getOrganizationSubpage,
homestays: getHomestays,
namespace,
showSearchInHeader: false,
themeConfig: !usingDefaultHeader
? {
headerButtonColorScheme: 'negative',
headerColorScheme: 'white',
}
: {},
}
}

export default withMainLayout(Homestay, {
headerButtonColorScheme: 'negative',
headerColorScheme: 'white',
footerVersion: 'organization',
})
10 changes: 8 additions & 2 deletions apps/web/screens/Organization/Syslumenn/OperatingLicenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -668,16 +668,22 @@ OperatingLicenses.getProps = async ({ apolloClient, locale, req }) => {
throw new CustomNextError(404, 'Organization subpage not found')
}

const usingDefaultHeader: boolean = namespace['usingDefaultHeader'] ?? false

return {
organizationPage: getOrganizationPage,
subpage: getOrganizationSubpage,
namespace,
showSearchInHeader: false,
themeConfig: !usingDefaultHeader
? {
headerButtonColorScheme: 'negative',
headerColorScheme: 'white',
}
: {},
}
}

export default withMainLayout(OperatingLicenses, {
headerButtonColorScheme: 'negative',
headerColorScheme: 'white',
footerVersion: 'organization',
})

0 comments on commit ef8b3ef

Please sign in to comment.