Skip to content

Commit 30a608e

Browse files
authored
Add onAfterTaxRegistrationExpired (#177)
1 parent 95db771 commit 30a608e

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@babel/preset-react": "7.18.6",
5252
"@rollup/plugin-json": "^6.0.0",
5353
"@rollup/plugin-replace": "^2.3.1",
54-
"@stripe/connect-js": "3.3.30",
54+
"@stripe/connect-js": "3.3.31",
5555
"@types/jest": "^24.0.25",
5656
"@types/react": "^16.8.0",
5757
"@types/react-dom": "^16.8.0",

src/Components.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,11 @@ export const ConnectTaxRegistrations = ({
413413
onLoaderStart,
414414
displayCountries,
415415
onAfterTaxRegistrationAdded,
416+
onAfterTaxRegistrationExpired,
416417
}: {
417418
displayCountries?: string[];
418419
onAfterTaxRegistrationAdded?: ({id}: {id: string}) => void;
420+
onAfterTaxRegistrationExpired?: ({id}: {id: string}) => void;
419421
} & CommonComponentProps): JSX.Element => {
420422
const {wrapper, component: taxRegistrations} =
421423
useCreateComponent('tax-registrations');
@@ -440,6 +442,14 @@ export const ConnectTaxRegistrations = ({
440442
}
441443
);
442444

445+
useUpdateWithSetter(
446+
taxRegistrations,
447+
onAfterTaxRegistrationExpired,
448+
(comp, val) => {
449+
comp.setOnAfterTaxRegistrationExpired(val);
450+
}
451+
);
452+
443453
return wrapper;
444454
};
445455

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,10 +1577,10 @@
15771577
dependencies:
15781578
"@sinonjs/commons" "^3.0.0"
15791579

1580-
"@stripe/[email protected].30":
1581-
version "3.3.30"
1582-
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.30.tgz#922b1d04a7af9f4dbf431a58ded152806b1c47fd"
1583-
integrity sha512-3GbRHNBqtmSvoAScTZYcXCaD8q+qf2Kpb6rb6+Rbc2kgKUykpoFuiHZKitW/DWC336z49XGZ/agJgYrEJ8r9vw==
1580+
"@stripe/[email protected].31":
1581+
version "3.3.31"
1582+
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.31.tgz#9c84e85aa15da4099b1dfb4807bf009663f1eee0"
1583+
integrity sha512-vjsZbatveSMoceOKZHt4eImmlBQla112OV9+enxcZUC1dGziTl2J2E3iH3n01yx9nu9ziesMJnSh/Y2d62TA/Q==
15841584

15851585
"@tootallnate/once@2":
15861586
version "2.0.0"

0 commit comments

Comments
 (0)