diff --git a/packages/components/organisms/f-header/CHANGELOG.md b/packages/components/organisms/f-header/CHANGELOG.md index 0a25ab8242..6c53417785 100644 --- a/packages/components/organisms/f-header/CHANGELOG.md +++ b/packages/components/organisms/f-header/CHANGELOG.md @@ -10,6 +10,7 @@ _May 16, 2024_ ### Changed - Stop Portugal, Romania, and New Zealand support. +- Support new country Slovakia. ## v10.19.0 diff --git a/packages/components/organisms/f-header/src/components/FlagIcon.vue b/packages/components/organisms/f-header/src/components/FlagIcon.vue index e71145e2b7..87c3e50229 100644 --- a/packages/components/organisms/f-header/src/components/FlagIcon.vue +++ b/packages/components/organisms/f-header/src/components/FlagIcon.vue @@ -23,6 +23,7 @@ import { FlagEsRoundIcon as FlagIconEs, FlagGbRoundIcon as FlagIconGb } from '@justeat/f-vue-icons'; +import { FlagSlovakiaIcon as FlagIconSk } from '@justeattakeaway/pie-icons-vue'; export default { components: { @@ -43,7 +44,8 @@ export default { FlagIconNo, FlagIconPl, FlagIconEs, - FlagIconGb + FlagIconGb, + FlagIconSk }, props: { diff --git a/packages/components/organisms/f-header/src/tenants/countryList.js b/packages/components/organisms/f-header/src/tenants/countryList.js index 9332efc7b1..af5f93d140 100644 --- a/packages/components/organisms/f-header/src/tenants/countryList.js +++ b/packages/components/organisms/f-header/src/tenants/countryList.js @@ -187,5 +187,14 @@ export default [ localisedName: 'Suisse', siteUrl: 'https://www.eat.ch/fr', gtm: 'click_country_ch_fr' + }, + { + key: 'sk', + flagKey: 'sk', + dataTestKey: 'sk', + lang: 'sk', + localisedName: 'Slovakia', + siteUrl: 'https://www.bistro.sk/', + gtm: 'click_country_sk' } ]; diff --git a/packages/components/organisms/f-header/test/component/f-header.component.spec.js b/packages/components/organisms/f-header/test/component/f-header.component.spec.js index 9a5802a5dd..1994c29527 100644 --- a/packages/components/organisms/f-header/test/component/f-header.component.spec.js +++ b/packages/components/organisms/f-header/test/component/f-header.component.spec.js @@ -45,7 +45,8 @@ describe('Desktop - f-header component tests', () => { { expectedLocale: 'es', expectedUrl: 'just-eat.es' }, { expectedLocale: 'ch_ch', expectedUrl: 'eat.ch' }, { expectedLocale: 'ch_en', expectedUrl: 'eat.ch/en' }, - { expectedLocale: 'ch_fr', expectedUrl: 'eat.ch/fr' } + { expectedLocale: 'ch_fr', expectedUrl: 'eat.ch/fr' }, + { expectedLocale: 'sk', expectedUrl: 'bistro.sk' } ]; tests.forEach(({ expectedLocale, expectedUrl }) => {