feat: move my-pages view to overview

This commit is contained in:
Simon Emanuelsson
2024-04-11 18:51:38 +02:00
parent 43c872ad78
commit 752e8e11da
17 changed files with 62 additions and 54 deletions

View File

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

View File

@@ -17,6 +17,16 @@ export const myPages = {
sv: "/sv/mina-sidor",
}
/** @type {import('@/types/routes').LangRoute} */
export const overview = {
da: `${myPages.da}/oversigt`,
de: `${myPages.de}/uberblick`,
en: `${myPages.en}/overview`,
fi: `${myPages.fi}/yleiskatsaus`,
no: `${myPages.no}/oversikt`,
sv: `${myPages.sv}/oversikt`,
}
/** TODO: Update to relevant paths */
/** @type {import('@/types/routes').LangRoute} */
export const profile = {