Skip to content

Commit

Permalink
Make onLoaderStart and onLoadError optional (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgea-stripe authored Aug 2, 2024
1 parent de1e64d commit ed13ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {useUpdateWithSetter} from './utils/useUpdateWithSetter';
import {LoadError, LoaderStart, NotificationCount} from '@stripe/connect-js';

export type CommonComponentProps = {
onLoaderStart: ({elementTagName}: LoaderStart) => void;
onLoadError: ({error, elementTagName}: LoadError) => void;
onLoaderStart?: ({elementTagName}: LoaderStart) => void;
onLoadError?: ({error, elementTagName}: LoadError) => void;
};

export const ConnectPayments = ({
Expand Down

0 comments on commit ed13ead

Please sign in to comment.