feat: move my-pages view to overview
This commit is contained in:
@@ -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),
|
||||
]
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user