Merge branch 'feature/social-post'
This commit is contained in:
commit
46171b4f24
55 files changed
+2872
-7
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import {PlaceCategory} from '@o2o/shared';
|
||||
import {
|
||||
AboutSection,
|
||||
SocialPostsSection,
|
||||
BookingSection,
|
||||
EssentialInfoSection,
|
||||
ExhibitionSection,
|
||||
@@ -97,7 +98,7 @@ export function HomePage() {
|
||||
<HeroSection />
|
||||
|
||||
{payload.theme.sections
|
||||
.filter((section) => section.enabled && section.id !== 'hero')
|
||||
.filter((section) => section.enabled && section.id !== 'hero' && section.id !== 'social')
|
||||
.map((section) => {
|
||||
const Component = SECTION_COMPONENTS[section.id];
|
||||
if (!Component) return null;
|
||||
@@ -132,6 +133,8 @@ export function HomePage() {
|
||||
없는 페이지는 이 업종 질의의 대부분("어떻게 예약해요")에 답을 못 한다.
|
||||
끈 것을 되살리지는 않는다 — 그건 사장님 결정이다. */}
|
||||
{isLodging && !hasSection(payload, 'booking') && <StayBookingSection />}
|
||||
{/* 모든 Shell에서 푸터 바로 위. 에디터 순서를 바꿔도 마지막 위치를 유지한다. */}
|
||||
{isSectionEnabled(payload, 'social') && <div data-editor-id="social"><SocialPostsSection /></div>}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user