use default exports and not named exports
This commit is contained in:
@@ -2,7 +2,7 @@ import { ComponentConfig } from "@reacteditor/core";
|
||||
import { Megaphone } from "lucide-react";
|
||||
import { Banner, type BannerProps } from "@/components/landing/banner";
|
||||
|
||||
export const bannerEditor: ComponentConfig<BannerProps> = {
|
||||
const bannerEditor: ComponentConfig<BannerProps> = {
|
||||
label: "Announcement bar",
|
||||
icon: <Megaphone size={16} />,
|
||||
category: "hero",
|
||||
@@ -28,3 +28,5 @@ export const bannerEditor: ComponentConfig<BannerProps> = {
|
||||
},
|
||||
render: (props) => <Banner {...props} />,
|
||||
};
|
||||
|
||||
export default bannerEditor;
|
||||
|
||||
Reference in New Issue
Block a user