Update react editor
This commit is contained in:
@@ -11,6 +11,7 @@ import collectionGridEditor from "@/components/commerce/collection-grid.editor";
|
||||
import collectionEditor from "@/components/commerce/collection.editor";
|
||||
import productDetailsEditor from "@/components/commerce/product-details.editor";
|
||||
import recommendedProductsEditor from "@/components/commerce/recommended-products.editor";
|
||||
import productRecommendationsEditor from "@/components/commerce/product-recommendations.editor";
|
||||
import searchProductsEditor from "@/components/commerce/search-products.editor";
|
||||
|
||||
import featuresEditor from "@/components/features/features.editor";
|
||||
@@ -32,22 +33,23 @@ const categories = {
|
||||
footer: { title: "Footer" },
|
||||
};
|
||||
|
||||
const sharedComponents = {
|
||||
navigation: navigationEditor,
|
||||
footer: footerEditor,
|
||||
};
|
||||
|
||||
export const homeConfig: UserConfig = {
|
||||
export const appConfig: UserConfig = {
|
||||
root: Root,
|
||||
categories,
|
||||
components: {
|
||||
...sharedComponents,
|
||||
navigation: navigationEditor,
|
||||
footer: footerEditor,
|
||||
hero: heroEditor,
|
||||
banner: bannerEditor,
|
||||
"featured-product": featuredProductEditor,
|
||||
"products-grid": productsGridEditor,
|
||||
"products-carousel": productsCarouselEditor,
|
||||
"collection-grid": collectionGridEditor,
|
||||
collection: collectionEditor,
|
||||
"product-details": productDetailsEditor,
|
||||
"recommended-products": recommendedProductsEditor,
|
||||
"product-recommendations": productRecommendationsEditor,
|
||||
"search-products": searchProductsEditor,
|
||||
features: featuresEditor,
|
||||
testimonials: testimonialsEditor,
|
||||
"image-gallery": imageGalleryEditor,
|
||||
@@ -57,32 +59,3 @@ export const homeConfig: UserConfig = {
|
||||
faq: faqEditor,
|
||||
} as any,
|
||||
};
|
||||
|
||||
export const productConfig: UserConfig = {
|
||||
root: Root,
|
||||
categories,
|
||||
components: {
|
||||
...sharedComponents,
|
||||
"product-details": productDetailsEditor,
|
||||
"recommended-products": recommendedProductsEditor,
|
||||
"products-carousel": productsCarouselEditor,
|
||||
} as any,
|
||||
};
|
||||
|
||||
export const collectionsConfig: UserConfig = {
|
||||
root: Root,
|
||||
categories,
|
||||
components: {
|
||||
...sharedComponents,
|
||||
collection: collectionEditor,
|
||||
} as any,
|
||||
};
|
||||
|
||||
export const searchConfig: UserConfig = {
|
||||
root: Root,
|
||||
categories,
|
||||
components: {
|
||||
...sharedComponents,
|
||||
"search-products": searchProductsEditor,
|
||||
} as any,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user