Skip to content

Commit

Permalink
Rename LocationList to InternalLocationList
Browse files Browse the repository at this point in the history
  • Loading branch information
sirgalleto committed Nov 15, 2023
1 parent 5319676 commit b58d17b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/ui-extensions-react/src/surfaces/admin/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ export {Thumbnail} from './components/Thumbnail/Thumbnail';
export type {ThumbnailProps} from './components/Thumbnail/Thumbnail';
export {URLField} from './components/URLField/URLField';
export type {URLFieldProps} from './components/URLField/URLField';
export {LocationList} from './components/LocationList/LocationList';
export type {LocationListProps} from './components/LocationList/LocationList';
export {InternalLocationList} from './components/InternalLocationList/InternalLocationList';
export type {InternalLocationListProps} from './components/InternalLocationList/InternalLocationList';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {InternalLocationList as BaseInternalLocationList} from '@shopify/ui-extensions/admin';
import {createRemoteReactComponent} from '@remote-ui/react';

export const InternalLocationList = createRemoteReactComponent(BaseInternalLocationList);
export type {InternalLocationListProps} from '@shopify/ui-extensions/admin';

This file was deleted.

4 changes: 2 additions & 2 deletions packages/ui-extensions/src/surfaces/admin/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ export {Thumbnail} from './components/Thumbnail/Thumbnail';
export type {ThumbnailProps} from './components/Thumbnail/Thumbnail';
export {URLField} from './components/URLField/URLField';
export type {URLFieldProps} from './components/URLField/URLField';
export {LocationList} from './components/LocationList/LocationList';
export type {LocationListProps} from './components/LocationList/LocationList';
export {InternalLocationList} from './components/InternalLocationList/InternalLocationList';
export type {InternalLocationListProps} from './components/InternalLocationList/InternalLocationList';
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface LocationGroup {
id: string;
}

export interface LocationListProps {
export interface InternalLocationListProps {
/**
* An array of location groups.
*/
Expand Down Expand Up @@ -70,7 +70,7 @@ export interface LocationListProps {
onCreateGroup: (id: string) => void;
}

export const LocationList = createRemoteComponent<
'LocationList',
LocationListProps
>('LocationList');
export const InternalLocationList = createRemoteComponent<
'InternalLocationList',
InternalLocationListProps
>('InternalLocationList');
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type ProductConfigurationComponents = AnyComponentBuilder<
>;

type OrderRoutingComponents = AnyComponentBuilder<
Pick<Components, 'LocationList'>
Pick<Components, 'InternalLocationList'>
>;

/**
Expand All @@ -50,7 +50,7 @@ type AllComponents = AnyComponentBuilder<
Components,
| 'CustomerSegmentTemplate'
| 'InternalCustomerSegmentTemplate'
| 'LocationList'
| 'InternalLocationList'
>
>;

Expand Down

0 comments on commit b58d17b

Please sign in to comment.