@daeryun/dr_components 0.9.90 → 0.9.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -123,7 +123,9 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
|
-
<article
|
|
126
|
+
<article itemScope={faqElementMaxCountInContents >= 2 ? true : undefined} itemType={faqElementMaxCountInContents >= 2
|
|
127
|
+
? 'https://schema.org/FAQPage'
|
|
128
|
+
: undefined}>
|
|
127
129
|
{/*목차*/}
|
|
128
130
|
<ContentList template={template} h2List={h2List ? h2List : []} onScrollToElement={handleScrollToElement}/>
|
|
129
131
|
|
|
@@ -131,9 +133,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
131
133
|
{h2List &&
|
|
132
134
|
h2List.map((h2Template, index) => {
|
|
133
135
|
console.log('h2Template.faqCount : ', h2Template.faqCount);
|
|
134
|
-
return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}
|
|
135
|
-
? 'https://schema.org/FAQPage'
|
|
136
|
-
: undefined}>
|
|
136
|
+
return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}>
|
|
137
137
|
<H2Contents h2Template={convertFaqItemType(h2Template)} index={index} faqCount={faqElementMaxCountInContents}/>
|
|
138
138
|
|
|
139
139
|
{/*h3*/}
|
|
@@ -188,7 +188,14 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
188
188
|
</div>
|
|
189
189
|
</div>
|
|
190
190
|
|
|
191
|
-
<article
|
|
191
|
+
<article
|
|
192
|
+
itemScope={(faqElementMaxCountInContents as number) >= 2 ? true : undefined}
|
|
193
|
+
itemType={
|
|
194
|
+
(faqElementMaxCountInContents as number) >= 2
|
|
195
|
+
? 'https://schema.org/FAQPage'
|
|
196
|
+
: undefined
|
|
197
|
+
}
|
|
198
|
+
>
|
|
192
199
|
{/*목차*/}
|
|
193
200
|
<ContentList
|
|
194
201
|
template={template}
|
|
@@ -204,12 +211,6 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
204
211
|
<section
|
|
205
212
|
className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
|
|
206
213
|
key={'h2영역' + h2Template.idx}
|
|
207
|
-
itemScope={(h2Template.faqCount as number) >= 2 ? true : undefined}
|
|
208
|
-
itemType={
|
|
209
|
-
(h2Template.faqCount as number) >= 2
|
|
210
|
-
? 'https://schema.org/FAQPage'
|
|
211
|
-
: undefined
|
|
212
|
-
}
|
|
213
214
|
>
|
|
214
215
|
<H2Contents
|
|
215
216
|
h2Template={convertFaqItemType(h2Template)}
|