Merged in chore/upgrade-next (pull request #3124)
Upgrade next@15.5.6 * chore: upgrade next@15.5.6 * chore: upgrade turborepo@2.6.1 * fix typings for scandic-web * fix: set correct type for pages * cleanup * fix more route.ts typing issues * Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/upgrade-next * explicitly import the types Approved-by: Linus Flood
This commit is contained in:
@@ -9,14 +9,13 @@ import background from "@/public/_static/img/partner/sas/sas_x_scandic_airplane_
|
||||
|
||||
import styles from "./layout.module.css"
|
||||
|
||||
import type { PropsWithChildren } from "react"
|
||||
|
||||
import type { LangParams, LayoutArgs } from "@/types/params"
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
export default async function SasXScandicLayout(
|
||||
props: PropsWithChildren<LayoutArgs<LangParams>>
|
||||
props: LayoutProps<"/[lang]/sas-x-scandic">
|
||||
) {
|
||||
const params = await props.params
|
||||
const lang = params.lang as Lang
|
||||
|
||||
const { children } = props
|
||||
|
||||
@@ -29,7 +28,7 @@ export default async function SasXScandicLayout(
|
||||
>
|
||||
<header className={styles.header}>
|
||||
{/* TODO should this link to my-pages sas page? */}
|
||||
<Link className={styles.backLink} href={profileOverview[params.lang]}>
|
||||
<Link className={styles.backLink} href={profileOverview[lang]}>
|
||||
<ArrowLeft height={20} width={20} />
|
||||
<span className={styles.long}>
|
||||
{intl.formatMessage({
|
||||
|
||||
Reference in New Issue
Block a user