Skip to content

Commit

Permalink
Add additional props to LWS component (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewilson01 committed Oct 26, 2023
1 parent e53621b commit 903a62c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/clever-parents-beam.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 additional props to LWS component
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ import {createRemoteComponent} from '@remote-ui/core';

export interface LoginWithShopProps {
open: boolean;
openLogin?: boolean;
doRedirect?: boolean;
modalTitle: string;
modalDescription: string;
modalLogoSrc: string;
modalContinueText?: string;
modalCancelText: string;
onComplete?(): void | Promise<void>;
onClosed?(): void;
onStatusChange?(status: 'shop_pay' | 'guest' | 'shop_pay_skipped'): void;
onStatusChange?(
status: 'shop_pay' | 'guest' | 'shop_pay_skipped' | 'shop_pay_guest',
): void;
}

export const LoginWithShop = createRemoteComponent<
Expand Down

0 comments on commit 903a62c

Please sign in to comment.