Skip to content

Commit b0d247e

Browse files
Refaktorerer. Enklere kode
1 parent 75cc0ef commit b0d247e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/nextjs/src/components/layouts/LayoutContainer.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ export const LayoutContainer = ({
2020
layoutProps,
2121
layoutStyle,
2222
children,
23+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
24+
pageProps,
2325
...divElementProps
2426
}: Props) => {
2527
const { editorView } = usePageContentProps();
2628
const { layoutConfig } = useLayoutConfig();
2729

2830
const { descriptor, type, config = {} } = layoutProps;
29-
const { pageProps: _pageProps, ...filteredDivElementProps } = divElementProps;
3031
const layoutName = descriptor.split(':')[1];
3132
const commonLayoutStyle = getCommonLayoutStyle(config);
3233
const paddingConfig = config.paddingSides?._selected;
@@ -35,7 +36,7 @@ export const LayoutContainer = ({
3536

3637
return (
3738
<div
38-
{...filteredDivElementProps}
39+
{...divElementProps}
3940
{...layoutConfig.editorProps}
4041
className={classNames(
4142
style.layout,

0 commit comments

Comments
 (0)