Skip to content

Commit

Permalink
Added "brand" property to Wallet Brick (#93)
Browse files Browse the repository at this point in the history
* added brand property to wallet brick

* Update package.json
  • Loading branch information
AleFossati authored Feb 21, 2024
1 parent 50e8a44 commit 1a34a99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mercadopago/sdk-react",
"version": "0.0.17",
"version": "0.0.18",
"description": "Mercado Pago SDK React",
"main": "index.js",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/bricks/wallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ const Wallet = ({
onSubmit = onSubmitDefault as () => Promise<unknown>,
customization,
initialization,
brand,
locale,
}: TWallet) => {
useEffect(() => {
// CardPayment uses a debounce to prevent unnecessary reRenders.
let timer: ReturnType<typeof setTimeout>;
const WalletBrickConfig = {
settings: {
brand,
initialization,
customization,
locale,
Expand Down
2 changes: 2 additions & 0 deletions src/bricks/wallet/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ interface IWalletBrickCheckoutCustomization {
}

export interface PreferenceOnSubmit extends IBrickSettings {
brand?: string;
/**
* Optional. An object containing initialization options.
*/
Expand All @@ -131,6 +132,7 @@ export interface PreferenceOnSubmit extends IBrickSettings {
}

export interface PreferenceOnInitialization extends IBrickSettings {
brand?: string;
/**
* Required. An object containing initialization options.
*/
Expand Down

0 comments on commit 1a34a99

Please sign in to comment.