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,8 +1,5 @@
|
||||
import { getCurrentWebUrl } from "@scandic-hotels/common/utils/url"
|
||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { getIntl } from "@/i18n"
|
||||
@@ -13,11 +10,8 @@ import styles from "./emptyUpcomingStays.module.css"
|
||||
export default async function EmptyUpcomingStaysBlock() {
|
||||
const intl = await getIntl()
|
||||
const lang = await getLang()
|
||||
const baseUrl = env.PUBLIC_URL || "https://www.scandichotels.com"
|
||||
|
||||
const href = !env.isLangLive(lang)
|
||||
? getCurrentWebUrl({ path: "/", lang, baseUrl })
|
||||
: `/${lang}`
|
||||
const href = `/${lang}`
|
||||
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
|
||||
Reference in New Issue
Block a user