feat: static my stays

This commit is contained in:
Michael Zetterberg
2024-04-19 17:07:23 +02:00
parent 837604e6ea
commit 2f6500f46d
33 changed files with 576 additions and 77 deletions

View File

@@ -1,4 +1,11 @@
import { benefits, myPages, overview, profile, profileEdit } from "./myPages"
import {
benefits,
myPages,
overview,
profile,
profileEdit,
stays,
} from "./myPages"
/**
* These are routes in code we know requires auth
@@ -11,4 +18,5 @@ export const authRequired = [
...Object.values(overview),
...Object.values(profile),
...Object.values(profileEdit),
...Object.values(stays),
]

View File

@@ -57,3 +57,13 @@ export const benefits = {
no: `${myPages.no}/fordeler`,
sv: `${myPages.sv}/formaner`,
}
/** @type {import('@/types/routes').LangRoute} */
export const stays = {
da: `${myPages.da}/ophold`,
de: `${myPages.de}/aufenthalte`,
en: `${myPages.en}/stays`,
fi: `${myPages.fi}/oleskeluni`,
no: `${myPages.no}/opphold`,
sv: `${myPages.sv}/vistelser`,
}