feat(BOOK-450): Added theme to hotel page only, reverting previous theme handing on the body tag

Approved-by: Linus Flood
This commit is contained in:
Erik Tiekstra
2025-10-16 12:54:03 +00:00
parent 338c93dd56
commit 038211bf09
9 changed files with 45 additions and 132 deletions
@@ -1,18 +0,0 @@
"use client"
import { useEffect } from "react"
import { type Theme, THEMES } from "@/utils/theme/types"
interface ThemeUpdaterProps {
theme: Theme
}
export default function ThemeUpdater({ theme }: ThemeUpdaterProps) {
useEffect(() => {
document.body.classList.remove(...THEMES)
document.body.classList.add(theme)
}, [theme])
return null
}