Merge branch 'main' into feature/crawler
This commit is contained in:
commit
dd3ad86715
160 files changed
+111240
-202
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import {SourceType} from '@o2o/shared';
|
||||
import {useSite} from '@site/lib/site-context';
|
||||
import {faqList} from '@site/lib/derive';
|
||||
import {Section} from '@site/lib/ui';
|
||||
@@ -18,12 +19,15 @@ export function FaqSection() {
|
||||
|
||||
if (faqs.length === 0) return null;
|
||||
|
||||
// ★ 문의 안내(TEMPLATE)가 섞이면 "모두 사업자가 확인한 내용" 이 거짓이 된다 — 그땐 설명을 달지 않는다.
|
||||
const hasInquiry = faqs.some((faq) => faq.sourceType === SourceType.TEMPLATE);
|
||||
|
||||
return (
|
||||
<Section
|
||||
id="faq"
|
||||
tone="alt"
|
||||
title="자주 묻는 질문"
|
||||
lead="아래 답변은 모두 사업자가 확인한 내용입니다."
|
||||
lead={hasInquiry ? undefined : '아래 답변은 모두 사업자가 확인한 내용입니다.'}
|
||||
>
|
||||
<div className={faqs.length > 4 ? 'grid gap-3 lg:grid-cols-2 lg:gap-4' : 'space-y-3'}>
|
||||
{faqs.map((faq, index) => (
|
||||
|
||||
Reference in new issue
Block a user