Skip to content

Commit e1389a7

Browse files
committed
fix(react): make onInitialize and onSubmit props optional
1 parent f2ed1a6 commit e1389a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react/src/components/presentation/SignUp/BaseSignUp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ export interface BaseSignUpProps {
9696
* Function to initialize sign-up flow.
9797
* @returns Promise resolving to the initial sign-up response.
9898
*/
99-
onInitialize: (payload?: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
99+
onInitialize?: (payload?: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
100100

101101
/**
102102
* Function to handle sign-up steps.
103103
* @param payload - The sign-up payload.
104104
* @returns Promise resolving to the sign-up response.
105105
*/
106-
onSubmit: (payload: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
106+
onSubmit?: (payload: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
107107

108108
/**
109109
* Size variant for the component.

0 commit comments

Comments
 (0)