Skip to content

Commit

Permalink
Change custom syslumenn config for header
Browse files Browse the repository at this point in the history
  • Loading branch information
mannipje committed Oct 7, 2024

Verified

This commit was signed with the committer’s verified signature.
bkueng Beat Küng
1 parent b1623cc commit 426e771
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
@@ -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
@@ -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
@@ -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 426e771

Please sign in to comment.