Skip to content

Commit 03bfe64

Browse files
add disputes list to preview react sdk (#161)
* add disputes list to preview react sdk * update version
1 parent 16ba949 commit 03bfe64

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-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.31-preview-1",
54+
"@stripe/connect-js": "3.3.33-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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,22 @@ export const ConnectPaymentDisputes = ({
204204
return wrapper;
205205
};
206206

207+
export const ConnectDisputesList = ({
208+
onLoadError,
209+
onLoaderStart,
210+
}: CommonComponentProps): JSX.Element | null => {
211+
const {wrapper, component} =
212+
useCreateComponent('disputes-list');
213+
214+
useUpdateWithSetter(component, onLoaderStart, (comp, val) => {
215+
comp.setOnLoaderStart(val);
216+
});
217+
useUpdateWithSetter(component, onLoadError, (comp, val) => {
218+
comp.setOnLoadError(val);
219+
});
220+
return wrapper;
221+
};
222+
207223
export const ConnectAccountOnboarding = ({
208224
onExit,
209225
recipientTermsOfServiceUrl,

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/connect-js@3.3.31-preview-1":
1514-
version "3.3.31-preview-1"
1515-
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.31-preview-1.tgz#f2c9f95744b0b13964a9e2dad58a658553db1fc1"
1516-
integrity sha512-18HPi/PyUEMvHLRCTYd/AlwJd6EeDtmc18tHtg88cpYZm4zYHJk3vMtALiEH/vEYW8GUBLGFCokT+6fDetvjOg==
1513+
"@stripe/connect-js@3.3.33-preview-1":
1514+
version "3.3.33-preview-1"
1515+
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.33-preview-1.tgz#4dc08f7e28eb9e23b7a046ef5c7f6e9c97cbaeb4"
1516+
integrity sha512-Gi7cGNEhw0ureIx8uProWmZ/NXrr8dxTX26Yg7iO2AB5tXV1mM8j0AFJAmz8vCscB5SyIMxi4sMElqz1s0TFUg==
15171517

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

0 commit comments

Comments
 (0)