-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
318b8ed
commit 92dee49
Showing
13 changed files
with
117 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
packages/ui-extensions-react/src/surfaces/checkout/components/Button/Button.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import {Button as BaseButton} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
|
||
// @ts-ignore | ||
export type ButtonProps = ReactPropsFromRemoteComponentType<typeof BaseButton>; | ||
|
||
export const Button = createRemoteReactComponent(BaseButton, { | ||
fragmentProps: ['overlay'], | ||
}); | ||
export const Button = createRemoteComponent('ui-button', BaseButton); |
6 changes: 2 additions & 4 deletions
6
packages/ui-extensions-react/src/surfaces/checkout/components/Link/Link.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import {Link as BaseLink} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
|
||
export type LinkProps = ReactPropsFromRemoteComponentType<typeof BaseLink>; | ||
|
||
export const Link = createRemoteReactComponent(BaseLink, { | ||
fragmentProps: ['overlay'], | ||
}); | ||
export const Link = createRemoteComponent('ui-link', BaseLink); |
5 changes: 3 additions & 2 deletions
5
packages/ui-extensions-react/src/surfaces/checkout/components/View/View.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import {View as BaseView} from '@shopify/ui-extensions/checkout'; | ||
import {createRemoteReactComponent} from '@remote-ui/react'; | ||
//@ts-ignore | ||
import {createRemoteComponent} from '@remote-dom/react'; | ||
import type {ReactPropsFromRemoteComponentType} from '@remote-ui/react'; | ||
|
||
export type ViewProps = ReactPropsFromRemoteComponentType<typeof BaseView>; | ||
|
||
export const View = createRemoteReactComponent(BaseView); | ||
export const View = createRemoteComponent('ui-view', BaseView); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters