Skip to content

Commit 1f76f81

Browse files
committed
refactor: address issue with demo Layout displayName
1 parent 7fead35 commit 1f76f81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/demo/config/components/Layout/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const layoutField: ObjectField<LayoutFieldProps> = {
5454
},
5555
};
5656

57-
export const Layout = forwardRef<HTMLDivElement, LayoutProps>(
57+
const Layout = forwardRef<HTMLDivElement, LayoutProps>(
5858
({ children, className, layout, style }, ref) => {
5959
return (
6060
<div
@@ -79,6 +79,10 @@ export const Layout = forwardRef<HTMLDivElement, LayoutProps>(
7979
}
8080
);
8181

82+
Layout.displayName = "Layout";
83+
84+
export { Layout };
85+
8286
export function withLayout<
8387
Props extends DefaultComponentProps = DefaultComponentProps
8488
>(

0 commit comments

Comments
 (0)