Skip to content

Commit 604e5b6

Browse files
authored
Add onAfterTaxRegistrationExpired to preview (#179)
* Bump version * Add onAfterTaxRegistrationExpired to preview
1 parent dff7ea9 commit 604e5b6

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.41-preview-1",
54+
"@stripe/connect-js": "3.3.42-preview-1",
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
@@ -759,9 +759,11 @@ export const ConnectTaxRegistrations = ({
759759
onLoaderStart,
760760
displayCountries,
761761
onAfterTaxRegistrationAdded,
762+
onAfterTaxRegistrationExpired,
762763
}: {
763764
displayCountries?: string[];
764765
onAfterTaxRegistrationAdded?: ({id}: {id: string}) => void;
766+
onAfterTaxRegistrationExpired?: ({id}: {id: string}) => void;
765767
} & CommonComponentProps): JSX.Element => {
766768
const {wrapper, component: taxRegistrations} =
767769
useCreateComponent('tax-registrations');
@@ -786,6 +788,14 @@ export const ConnectTaxRegistrations = ({
786788
}
787789
);
788790

791+
useUpdateWithSetter(
792+
taxRegistrations,
793+
onAfterTaxRegistrationExpired,
794+
(comp, val) => {
795+
comp.setOnAfterTaxRegistrationExpired(val);
796+
}
797+
);
798+
789799
return wrapper;
790800
};
791801

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,10 +1510,10 @@
15101510
dependencies:
15111511
"@sinonjs/commons" "^3.0.0"
15121512

1513-
"@stripe/[email protected].41-preview-1":
1514-
version "3.3.41-preview-1"
1515-
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.41-preview-1.tgz#d1a83a900e3f5956426ae7aa787684edf3889a27"
1516-
integrity sha512-YppKDfXeHruc+Jvr9BDwqgWumQ0+VLXjTA61s+Pxuz+Z4v9ASrFVL+a0zkgOOuD+T/s8MoYgffHmY8LIH7YInw==
1513+
"@stripe/[email protected].42-preview-1":
1514+
version "3.3.42-preview-1"
1515+
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.42-preview-1.tgz#58afabb0b01d00ce1f685cee3973f9f209a231c6"
1516+
integrity sha512-7nOVoV/BCV1OFeG099qGSFdDHwlMynZhSFiBylA6swkfMQS20puyKkEvct1TpVz7/cvzg45uSQntrHIlL4nq1g==
15171517

15181518
"@tootallnate/once@2":
15191519
version "2.0.0"

0 commit comments

Comments
 (0)