Merged in feat/env-cleanup (pull request #3076)
feat(SW-3594): webviews - remove unused "Back to overview" link * feat(SW-3594): remove unused component Approved-by: Bianca Widstam
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import { TrackingSDK } from "@scandic-hotels/tracking/TrackingSDK"
|
||||
|
||||
import { overview } from "@/constants/routes/webviews"
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import MaxWidth from "@/components/MaxWidth"
|
||||
import Surprises from "@/components/MyPages/Surprises"
|
||||
import Blocks from "@/components/Webviews/AccountPage/Blocks"
|
||||
import LinkToOverview from "@/components/Webviews/LinkToOverview"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
|
||||
import styles from "./accountPage.module.css"
|
||||
|
||||
@@ -21,13 +18,9 @@ export default async function AccountPage() {
|
||||
|
||||
const { tracking, accountPage } = accountPageRes
|
||||
|
||||
const lang = await getLang()
|
||||
const linkToOverview = `/${lang}/webview${accountPage.url}` !== overview[lang]
|
||||
|
||||
return (
|
||||
<>
|
||||
<MaxWidth className={styles.blocks} tag="main">
|
||||
{linkToOverview ? <LinkToOverview /> : null}
|
||||
<Blocks content={accountPage.content} />
|
||||
</MaxWidth>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user