use default exports and not named exports

This commit is contained in:
Rami Bitar
2026-06-03 23:17:00 -04:00
parent a539753aa5
commit 7f86072636
21 changed files with 96 additions and 102 deletions

View File

@@ -4,10 +4,7 @@ import { imageField } from "@reacteditor/plugin-media/field";
import { frontendAiMediaAdapter } from "@/services/media-adapter";
import { CollectionView, type CollectionProps } from "@/components/commerce/collection";
export function createCollectionEditor(opts: {
collectionField: any;
}): ComponentConfig<CollectionProps> {
return {
const collectionEditor: ComponentConfig<CollectionProps> = {
label: "Collection page",
icon: <FolderOpen size={16} />,
category: "commerce",
@@ -48,7 +45,7 @@ export function createCollectionEditor(opts: {
metafieldFilters: [],
},
fields: {
collection: { label: "Collection", ...opts.collectionField },
collection: { label: "Collection", type: "shopifyCollection" } as any,
showDescription: {
label: "Description",
type: "radio",
@@ -247,5 +244,6 @@ export function createCollectionEditor(opts: {
},
},
render: (props) => <CollectionView {...props} />,
};
}
};
export default collectionEditor;