File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
headapps/Sugcon2024/src/pages Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 6
6
RenderingType ,
7
7
SitecoreContext ,
8
8
ComponentPropsContext ,
9
- EditingComponentPlaceholder ,
10
9
StaticPath ,
11
10
} from '@sitecore-jss/sitecore-jss-nextjs' ;
12
11
import { handleEditorFastRefresh } from '@sitecore-jss/sitecore-jss-nextjs/utils' ;
@@ -32,8 +31,6 @@ const SitecorePage = ({
32
31
}
33
32
34
33
const isEditing = layoutData . sitecore . context . pageEditing ;
35
- const isComponentRendering =
36
- layoutData . sitecore . context . renderingType === RenderingType . Component ;
37
34
38
35
return (
39
36
< ComponentPropsContext value = { componentProps } >
@@ -45,11 +42,7 @@ const SitecorePage = ({
45
42
Sitecore Pages supports component rendering to avoid refreshing the entire page during component editing.
46
43
If you are using Experience Editor only, this logic can be removed, Layout can be left.
47
44
*/ }
48
- { isComponentRendering ? (
49
- < EditingComponentPlaceholder rendering = { layoutData . sitecore . route } />
50
- ) : (
51
- < Layout layoutData = { layoutData } headLinks = { headLinks } />
52
- ) }
45
+ < Layout layoutData = { layoutData } headLinks = { headLinks } />
53
46
</ SitecoreContext >
54
47
</ ComponentPropsContext >
55
48
) ;
You can’t perform that action at this time.
0 commit comments