Skip to content

Commit 7124ac1

Browse files
add disputes list to preview react sdk
1 parent 7bf64a1 commit 7124ac1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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,

0 commit comments

Comments
 (0)