feat(WEB-170): edit profile view
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { benefits, myPages, profile } from "./myPages"
|
||||
import { benefits, myPages, profile, profileEdit } from "./myPages"
|
||||
|
||||
/**
|
||||
* These are routes in code we know requires auth
|
||||
@@ -6,7 +6,8 @@ import { benefits, myPages, profile } from "./myPages"
|
||||
* Some of these are rewritten in next.config.js
|
||||
*/
|
||||
export const authRequired = [
|
||||
...Object.values(benefits),
|
||||
...Object.values(myPages),
|
||||
...Object.values(profile),
|
||||
...Object.values(benefits),
|
||||
...Object.values(profileEdit),
|
||||
]
|
||||
|
||||
@@ -17,14 +17,25 @@ export const myPages = {
|
||||
sv: "/sv/mina-sidor",
|
||||
}
|
||||
|
||||
/** TODO: Update to relevant paths */
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const profile = {
|
||||
da: `${myPages.da}/profil-da`,
|
||||
de: `${myPages.de}/profile-de`,
|
||||
en: `${myPages.en}/profile-en`,
|
||||
fi: `${myPages.fi}/profile-fi`,
|
||||
no: `${myPages.no}/profile-no`,
|
||||
sv: `${myPages.sv}/profile-sv`,
|
||||
da: `${myPages.da}/profil`,
|
||||
de: `${myPages.de}/profil`,
|
||||
en: `${myPages.en}/profile`,
|
||||
fi: `${myPages.fi}/profiili`,
|
||||
no: `${myPages.no}/profil`,
|
||||
sv: `${myPages.sv}/profil`,
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const profileEdit = {
|
||||
da: `${profile.da}/edit`,
|
||||
de: `${profile.de}/edit`,
|
||||
en: `${profile.en}/edit`,
|
||||
fi: `${profile.fi}/edit`,
|
||||
no: `${profile.no}/edit`,
|
||||
sv: `${profile.sv}/edit`,
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
|
||||
Reference in New Issue
Block a user