Skip to content

Commit dff7ea9

Browse files
authored
Update onTaxCodeSelect (#178)
1 parent e9c3aab commit dff7ea9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
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.40-preview-1",
54+
"@stripe/connect-js": "3.3.41-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ export const ConnectProductTaxCodeSelector = ({
723723
disabled,
724724
initialTaxCode
725725
}: {
726-
onTaxCodeSelect?: (taxCode: string, { analyticsName }: { analyticsName: string }) => void;
726+
onTaxCodeSelect?: (taxCode: string | null, _: { analyticsName: string } | null) => void;
727727
hideDescription?: boolean;
728728
disabled?: boolean;
729729
initialTaxCode?: string;

src/utils/useUpdateWithSetter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const useUpdateWithSetter = <
3232
| ((StepChange: StepChange) => void)
3333
| Date
3434
| (({id}: {id: string}) => void)
35-
| ((taxCode: string, {analyticsName}: {analyticsName: string}) => void)
35+
| ((taxCode: string | null, _: {analyticsName: string} | null) => void)
3636
| (({promotionShown}: {promotionShown: boolean}) => void)
3737
| (({payoutId}: {payoutId: string}) => void)
3838
| undefined

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].40-preview-1":
1514-
version "3.3.40-preview-1"
1515-
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.40-preview-1.tgz#754c6a9637b98ebfb7921cf23b99e06d0ddc07f5"
1516-
integrity sha512-xYrv9fizMur3ijPxfkX+2975qbUaTlHnOyRhEp8u6SFl/hOMIgmbPKHPWgOx20WuPGJ2iRE0D+tK90wPUT8aug==
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==
15171517

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

0 commit comments

Comments
 (0)