Merged develop into fix/edit-profile-server-action
This commit is contained in:
12
app/[lang]/(live-current)/@myPagesMobileDropdown/error.tsx
Normal file
12
app/[lang]/(live-current)/@myPagesMobileDropdown/error.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
"use client"
|
||||||
|
|
||||||
|
import { useParams } from "next/navigation"
|
||||||
|
|
||||||
|
import MyPagesMobileDropdown from "@/components/Current/Header/MyPagesMobileDropdown"
|
||||||
|
|
||||||
|
import { LangParams } from "@/types/params"
|
||||||
|
|
||||||
|
export default function Error() {
|
||||||
|
const params = useParams<LangParams>()
|
||||||
|
return <MyPagesMobileDropdown navigation={null} lang={params.lang} />
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import "@scandic-hotels/design-system/current/style.css"
|
import "@/app/globals.css"
|
||||||
|
import "@scandic-hotels/design-system/style.css"
|
||||||
|
|
||||||
import Script from "next/script"
|
import Script from "next/script"
|
||||||
|
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ export default function MyPagesMobileDropdown({
|
|||||||
{menuItem.display_sign_out_link && lang ? (
|
{menuItem.display_sign_out_link && lang ? (
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<Link
|
||||||
color="burgundy"
|
|
||||||
href={logout[lang]}
|
href={logout[lang]}
|
||||||
prefetch={false}
|
prefetch={false}
|
||||||
size="small"
|
size="small"
|
||||||
variant="sidebar"
|
color="burgundy"
|
||||||
|
variant="myPageMobileDropdown"
|
||||||
>
|
>
|
||||||
{formatMessage({ id: "Log out" })}
|
{formatMessage({ id: "Log out" })}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export const profileEdit = {
|
|||||||
|
|
||||||
/** @type {import('@/types/routes').LangRoute} */
|
/** @type {import('@/types/routes').LangRoute} */
|
||||||
export const points = {
|
export const points = {
|
||||||
da: `${myPages.da}/points`,
|
da: `${myPages.da}/point`,
|
||||||
de: `${myPages.de}/punkte`,
|
de: `${myPages.de}/punkte`,
|
||||||
en: `${myPages.en}/points`,
|
en: `${myPages.en}/points`,
|
||||||
fi: `${myPages.fi}/pisteet`,
|
fi: `${myPages.fi}/pisteet`,
|
||||||
|
|||||||
@@ -26,12 +26,12 @@ export const benefits = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const points = {
|
export const points = {
|
||||||
da: `${myPages.da}/points`,
|
da: `${myPages.da}/point`,
|
||||||
de: `${myPages.de}/points`,
|
de: `${myPages.de}/punkte`,
|
||||||
en: `${myPages.en}/points`,
|
en: `${myPages.en}/points`,
|
||||||
fi: `${myPages.fi}/points`,
|
fi: `${myPages.fi}/pisteet`,
|
||||||
no: `${myPages.no}/points`,
|
no: `${myPages.no}/poeng`,
|
||||||
sv: `${myPages.sv}/points`,
|
sv: `${myPages.sv}/poang`,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const programOverview = {
|
export const programOverview = {
|
||||||
|
|||||||
Reference in New Issue
Block a user