Skip to content

Commit

Permalink
Feat: enable logos for SK and CZ online banking (#2939)
Browse files Browse the repository at this point in the history
* feat: enable logos for SK and CZ online banking

* changeset

* update SK currency to EUR on playgrounds
  • Loading branch information
m1aw authored Dec 9, 2024
1 parent 7833841 commit b96936d
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-boats-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': minor
---

Feat: enable logos for SK and CZ online banking
1 change: 0 additions & 1 deletion examples/angular/src/utils/getCurrency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const currencies: Record<string, string> = {
RU: 'RUB',
SE: 'SEK',
SG: 'SGD',
SK: 'SKK',
TH: 'THB',
TW: 'TWD',
US: 'USD',
Expand Down
1 change: 0 additions & 1 deletion examples/nextjs/app/_utils/amount-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const currencies = {
RU: "RUB",
SE: "SEK",
SG: "SGD",
SK: "SKK",
TH: "THB",
TW: "TWD",
US: "USD",
Expand Down
1 change: 0 additions & 1 deletion examples/nextjs/app/_utils/getCurrency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const currencies = {
RU: "RUB",
SE: "SEK",
SG: "SGD",
SK: "SKK",
TH: "THB",
TW: "TWD",
US: "USD",
Expand Down
1 change: 0 additions & 1 deletion examples/nuxt/utils/getCurrency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const currencies: Record<string, string> = {
RU: 'RUB',
SE: 'SEK',
SG: 'SGD',
SK: 'SKK',
TH: 'THB',
TW: 'TWD',
US: 'USD',
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/components/OnlineBankingCZ/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class OnlineBankingCZElement extends IssuerListContainer {
formatProps(props) {
return {
...super.formatProps(props),
showImage: false,
showImage: true,
termsAndConditions: OnlineBankingCZElement.termsAndConditions
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/components/OnlineBankingSK/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class OnlineBankingSKElement extends IssuerListContainer {
formatProps(props) {
return {
...super.formatProps(props),
showImage: false,
showImage: true,
termsAndConditions: OnlineBankingSKElement.termsAndConditions
};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { MetaConfiguration, StoryConfiguration } from '../types';
import { ComponentContainer } from '../ComponentContainer';
import { IssuerListConfiguration } from '../../../src/components/helpers/IssuerListContainer/types';
import { Checkout } from '../Checkout';
import { OnlineBankingCZ } from '../../../src';

type OnlineBankingCZStory = StoryConfiguration<IssuerListConfiguration>;

const meta: MetaConfiguration<IssuerListConfiguration> = {
title: 'IssuerList/OnlineBankingCZ'
};

export const Default: OnlineBankingCZStory = {
render: ({ componentConfiguration, ...checkoutConfig }) => (
<Checkout checkoutConfig={checkoutConfig}>
{checkout => <ComponentContainer element={new OnlineBankingCZ(checkout, componentConfiguration)} />}
</Checkout>
),
args: {
countryCode: 'CZ'
}
};

export default meta;
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { MetaConfiguration, StoryConfiguration } from '../types';
import { ComponentContainer } from '../ComponentContainer';
import { IssuerListConfiguration } from '../../../src/components/helpers/IssuerListContainer/types';
import { Checkout } from '../Checkout';
import { OnlineBankingSK } from '../../../src';

type OnlineBankingSKStory = StoryConfiguration<IssuerListConfiguration>;

const meta: MetaConfiguration<IssuerListConfiguration> = {
title: 'IssuerList/OnlineBankingSK'
};

export const Default: OnlineBankingSKStory = {
render: ({ componentConfiguration, ...checkoutConfig }) => (
<Checkout checkoutConfig={checkoutConfig}>
{checkout => <ComponentContainer element={new OnlineBankingSK(checkout, componentConfiguration)} />}
</Checkout>
),
args: {
countryCode: 'SK'
}
};

export default meta;
1 change: 0 additions & 1 deletion packages/lib/storybook/utils/get-currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const currencies: Record<string, string> = {
RU: 'RUB',
SE: 'SEK',
SG: 'SGD',
SK: 'SKK',
TH: 'THB',
TW: 'TWD',
US: 'USD',
Expand Down
1 change: 0 additions & 1 deletion packages/playground/src/config/getCurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const currencies = {
RU: 'RUB',
SE: 'SEK',
SG: 'SGD',
SK: 'SKK',
TH: 'THB',
TW: 'TWD',
US: 'USD',
Expand Down

0 comments on commit b96936d

Please sign in to comment.