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"
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ export default function MyPagesMobileDropdown({
|
||||
{menuItem.display_sign_out_link && lang ? (
|
||||
<li>
|
||||
<Link
|
||||
color="burgundy"
|
||||
href={logout[lang]}
|
||||
prefetch={false}
|
||||
size="small"
|
||||
variant="sidebar"
|
||||
color="burgundy"
|
||||
variant="myPageMobileDropdown"
|
||||
>
|
||||
{formatMessage({ id: "Log out" })}
|
||||
</Link>
|
||||
|
||||
@@ -50,7 +50,7 @@ export const profileEdit = {
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const points = {
|
||||
da: `${myPages.da}/points`,
|
||||
da: `${myPages.da}/point`,
|
||||
de: `${myPages.de}/punkte`,
|
||||
en: `${myPages.en}/points`,
|
||||
fi: `${myPages.fi}/pisteet`,
|
||||
|
||||
@@ -26,12 +26,12 @@ export const benefits = {
|
||||
}
|
||||
|
||||
export const points = {
|
||||
da: `${myPages.da}/points`,
|
||||
de: `${myPages.de}/points`,
|
||||
da: `${myPages.da}/point`,
|
||||
de: `${myPages.de}/punkte`,
|
||||
en: `${myPages.en}/points`,
|
||||
fi: `${myPages.fi}/points`,
|
||||
no: `${myPages.no}/points`,
|
||||
sv: `${myPages.sv}/points`,
|
||||
fi: `${myPages.fi}/pisteet`,
|
||||
no: `${myPages.no}/poeng`,
|
||||
sv: `${myPages.sv}/poang`,
|
||||
}
|
||||
|
||||
export const programOverview = {
|
||||
|
||||
Reference in New Issue
Block a user