From aa63c4bc45ac2023315b0b6d78f5ff7e4e2a944a Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Fri, 6 Sep 2024 14:05:41 +0200 Subject: [PATCH] feat(SW-187): fix merge --- components/Footer/mockedData.ts | 254 -------------------------- types/components/footer/navigation.ts | 13 +- 2 files changed, 3 insertions(+), 264 deletions(-) delete mode 100644 components/Footer/mockedData.ts diff --git a/components/Footer/mockedData.ts b/components/Footer/mockedData.ts deleted file mode 100644 index d294b908b..000000000 --- a/components/Footer/mockedData.ts +++ /dev/null @@ -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, - }, - }, - }, -} diff --git a/types/components/footer/navigation.ts b/types/components/footer/navigation.ts index cab2d4c7b..503c8ddb9 100644 --- a/types/components/footer/navigation.ts +++ b/types/components/footer/navigation.ts @@ -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