feat(BOOK-414): Added hotel branding themes to hotelpages
Approved-by: Matilda Landström
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import ThemeUpdater from "@/components/ThemeUpdater"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
import { getHotelTheme } from "@/utils/theme/utils"
|
||||
|
||||
export default async function ThemeHotelPage() {
|
||||
const lang = await getLang()
|
||||
const hotelTheme = await getHotelTheme(lang)
|
||||
|
||||
return <ThemeUpdater theme={hotelTheme} />
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from "../page"
|
||||
6
apps/scandic-web/app/[lang]/(live)/@theme/page.tsx
Normal file
6
apps/scandic-web/app/[lang]/(live)/@theme/page.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import ThemeUpdater from "@/components/ThemeUpdater"
|
||||
import { DEFAULT_THEME } from "@/utils/theme/types"
|
||||
|
||||
export default function ThemePage() {
|
||||
return <ThemeUpdater theme={DEFAULT_THEME} />
|
||||
}
|
||||
Reference in New Issue
Block a user