Skip to content

Commit

Permalink
Support Slovakia
Browse files Browse the repository at this point in the history
  • Loading branch information
phatpt8 committed May 17, 2024
1 parent d14f3f5 commit be2fdeb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/organisms/f-header/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ _May 16, 2024_
### Changed

- Stop Portugal, Romania, and New Zealand support.
- Support new country Slovakia.

## v10.19.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -43,7 +44,8 @@ export default {
FlagIconNo,
FlagIconPl,
FlagIconEs,
FlagIconGb
FlagIconGb,
FlagIconSk
},
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit be2fdeb

Please sign in to comment.