Merged develop into fix/edit-profile-server-action

This commit is contained in:
Chuma Mcphoy (We Ahead)
2024-06-24 12:57:27 +00:00
6 changed files with 22 additions and 9 deletions

View 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} />
}

View File

@@ -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"

View File

@@ -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>

View File

@@ -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`,

View File

@@ -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 = {