Merged in chore/remove-unused-env-vars (pull request #2463)
chore: Remove unused env vars and feature toggles * Remove unused env vars and feature toggles Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import {
|
||||
findMyBooking,
|
||||
findMyBookingCurrentWebPath,
|
||||
} from "@scandic-hotels/common/constants/routes/findMyBooking"
|
||||
import { getCurrentWebUrl } from "@scandic-hotels/common/utils/url"
|
||||
import { findMyBooking } from "@scandic-hotels/common/constants/routes/findMyBooking"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
import { getHeader } from "@/lib/trpc/memoizedRequests"
|
||||
|
||||
import { IconName } from "@/components/Icons/iconName"
|
||||
@@ -31,14 +26,7 @@ export default async function TopMenu() {
|
||||
}
|
||||
|
||||
const lang = await getLang()
|
||||
const baseUrl = env.PUBLIC_URL || "https://www.scandichotels.com"
|
||||
const findMyBookingUrl = !env.isLangLive(lang)
|
||||
? getCurrentWebUrl({
|
||||
path: findMyBookingCurrentWebPath[lang],
|
||||
lang,
|
||||
baseUrl,
|
||||
})
|
||||
: findMyBooking[lang]
|
||||
const findMyBookingUrl = findMyBooking[lang]
|
||||
|
||||
return (
|
||||
<div className={styles.topMenu}>
|
||||
|
||||
Reference in New Issue
Block a user