feat(SW-187): fix merge

This commit is contained in:
Pontus Dreij
2024-09-06 14:05:41 +02:00
parent 5a6d068c75
commit aa63c4bc45
2 changed files with 3 additions and 264 deletions

View File

@@ -1,254 +0,0 @@
export const footer = {
mainLinks: [
{
title: "Travel guides",
href: "/travel-guides",
id: "travel-guides",
openInNewTab: false,
isExternal: false,
},
{
title: "New hotels",
href: "/new-hotels",
id: "new-hotels",
openInNewTab: false,
isExternal: false,
},
{
title: "Accessibililty",
href: "/accessibility",
id: "accessibility",
openInNewTab: false,
isExternal: false,
},
{
title: "Sustanability",
href: "/sustainability",
id: "sustainability",
openInNewTab: false,
isExternal: false,
},
],
appDownloads: {
title: "Scandic App",
links: [
{
title: "App Store",
href: "https://apps.apple.com/se/app/scandic-hotels/id1020208712",
id: "apple",
},
{
title: "Google Play",
href: "https://play.google.com/store/apps/details?id=com.scandichotels.scandichotels",
id: "google",
},
],
},
secondaryLinks: [
{
title: "Customer service",
links: [
{
title: "Contact us",
href: "/contact-us",
id: "contact-us",
openInNewTab: false,
isExternal: false,
},
{
title: "Frequntly asked questions",
href: "/frequently-asked-questions",
id: "frequently-asked-questions",
openInNewTab: false,
isExternal: false,
},
{
title: "Rates and policys",
href: "/rates-and-policies",
id: "rates-and-policies",
openInNewTab: false,
isExternal: false,
},
{
title: "Terms and conditions",
href: "/terms-and-conditions",
id: "terms-and-conditions",
openInNewTab: false,
isExternal: false,
},
],
},
{
title: "About Scandic Hotels",
links: [
{
title: "Scandic Group",
href: "/scandic-group",
id: "scandic-group",
openInNewTab: false,
isExternal: false,
},
{
title: "Investors",
href: "/investors",
id: "investors",
openInNewTab: false,
isExternal: false,
},
{
title: "Press",
href: "/press",
id: "press",
openInNewTab: false,
isExternal: false,
},
{
title: "Sponsors",
href: "/sponsors",
id: "sponsors",
openInNewTab: false,
isExternal: false,
},
{
title: "Partners",
href: "/partners",
id: "partners",
openInNewTab: false,
isExternal: false,
},
{
title: "Career",
href: "/career",
id: "career",
openInNewTab: false,
isExternal: false,
},
],
},
],
tertiaryLinks: [
{
title: "Cookies",
href: "/cookies",
id: "cookies",
},
{
title: "Privacy policy",
href: "/privacy",
id: "privacy",
},
],
languageSwitcher: {
urls: {
da: {
url: "https://www.scandichotels.com/da",
isExternal: true,
},
de: {
url: "https://www.scandichotels.com/de",
isExternal: true,
},
en: {
url: "https://www.scandichotels.com/en",
isExternal: true,
},
fi: {
url: "https://www.scandichotels.com/fi",
isExternal: true,
},
no: {
url: "https://www.scandichotels.com/no",
isExternal: true,
},
sv: {
url: "https://www.scandichotels.com/sv",
isExternal: true,
},
},
},
copyrightCompany: "Scandic AB",
copyrightInfo: "All rights reserved.",
socialMedia: {
links: [
{
title: "Facebook",
href: "https://www.facebook.com/scandichotels/",
id: "facebook",
},
{
title: "Instagram",
href: "https://www.instagram.com/scandichotels/",
id: "instagram",
},
{
title: "Tripadvisor",
href: "https://www.tripadvisor.com/Hotel_Review-g297628-d1020208712-Reviews-Scandic_Hotels-Stockholm_Sweden.html",
id: "tripadvisor",
},
],
},
}
copyrightCompany: "Scandic AB",
copyrightInfo: "All rights reserved.",
socialMedia: {
links: [
{
title: "Facebook",
href: "https://www.facebook.com/scandichotels/",
id: "facebook",
},
{
title: "Instagram",
href: "https://www.instagram.com/scandichotels/",
id: "instagram",
},
{
title: "Tripadvisor",
href: "https://www.tripadvisor.com/Hotel_Review-g297628-d1020208712-Reviews-Scandic_Hotels-Stockholm_Sweden.html",
id: "tripadvisor",
},
],
},
tertiaryLinks: [
{
title: "Cookies",
href: "/cookies",
id: "cookies",
},
{
title: "Privacy policy",
href: "/privacy",
id: "privacy",
},
],
languageSwitcher: {
urls: {
da: {
url: "https://www.scandichotels.com/da",
isExternal: true,
},
de: {
url: "https://www.scandichotels.com/de",
isExternal: true,
},
en: {
url: "https://www.scandichotels.com/en",
isExternal: true,
},
fi: {
url: "https://www.scandichotels.com/fi",
isExternal: true,
},
no: {
url: "https://www.scandichotels.com/no",
isExternal: true,
},
sv: {
url: "https://www.scandichotels.com/sv",
isExternal: true,
},
},
},
}

View File

@@ -1,14 +1,6 @@
export type FooterMainNav = {
url: string
title: string
openInNewTab: boolean
isExternal: boolean
}
export type FooterMainNavProps = {
mainLinks: FooterMainNav[]
}
import type { LanguageSwitcherData } from "@/types/requests/languageSwitcher"
export type FooterSecondaryNav = {
export type FooterLink = {
isExternal: boolean
openInNewTab: boolean
title: string
@@ -49,6 +41,7 @@ export type FooterSecondaryNavProps = {
export type FooterDetailsProps = {
socialMedia?: FooterSocialMedia
tertiaryLinks?: FooterLink[]
languageUrls?: LanguageSwitcherData
}
export type FooterNavigationProps = FooterMainNavProps & FooterSecondaryNavProps