Merged in feat/SW-3520-update-footer-ui-and-footer-link (pull request #2910)
feat(SW-3520): Updated the footer * feat(SW-3520): Updated links to route to scandic web * feat(SW-3520): Updated the footer with language switcher * feat(SW-3520): Updated the Contact-us link and removed double slash Approved-by: Anton Gunnarsson
This commit is contained in:
10
apps/partner-sas/util/index.ts
Normal file
10
apps/partner-sas/util/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type { LangRoute } from "@scandic-hotels/common/constants/routes/langRoute"
|
||||
|
||||
export function routeToScandicWeb(route: LangRoute) {
|
||||
const url = `https://www.scandichotels.com`
|
||||
return Object.entries(route).reduce((acc, [key, value]) => {
|
||||
acc[key as Lang] = `${url}${value}`
|
||||
return acc
|
||||
}, {} as LangRoute)
|
||||
}
|
||||
Reference in New Issue
Block a user