Skip to content

Commit

Permalink
Add onStatusChange callback to LWS (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewilson01 committed Oct 11, 2023
1 parent 894aa53 commit b45e1b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/nasty-planets-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/ui-extensions': patch
'@shopify/ui-extensions-react': patch
---

Add onStatusChange callback to LoginWithShop component
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface LoginWithShopProps {
apiKey?: string;
onComplete?(): void | Promise<void>;
onClosed?(): void;
onStatusChange?(status: 'shop_pay' | 'guest' | 'shop_pay_skipped'): void;
}

export const LoginWithShop = createRemoteComponent<
Expand Down

0 comments on commit b45e1b7

Please sign in to comment.