@daeryun/dr_components 1.0.2 → 1.0.3
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.
- package/dist/components/page/LawInfoNew/LawInfoNew.jsx +4 -4
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +5 -5
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +3 -3
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -88,7 +88,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
88
88
|
};
|
|
89
89
|
const convertFaqItemType = (template) => {
|
|
90
90
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
91
|
-
if (faqElementMaxCountInContents >=
|
|
91
|
+
if (faqElementMaxCountInContents >= 2) {
|
|
92
92
|
template.description = template.description.replaceAll(/<div\s+itemscope=""\s+itemtype="https:\/\/schema\.org\/FAQPage">/gi, '<div>');
|
|
93
93
|
return template;
|
|
94
94
|
}
|
|
@@ -122,9 +122,9 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
124
124
|
|
|
125
|
-
<article itemScope={faqElementMaxCountInContents >=
|
|
126
|
-
?
|
|
127
|
-
:
|
|
125
|
+
<article itemScope={faqElementMaxCountInContents >= 2 ? undefined : true} itemType={faqElementMaxCountInContents >= 2
|
|
126
|
+
? undefined
|
|
127
|
+
: 'https://schema.org/FAQPage'}>
|
|
128
128
|
{/*목차*/}
|
|
129
129
|
<ContentList template={template} h2List={h2List ? h2List : []} onScrollToElement={handleScrollToElement}/>
|
|
130
130
|
|
|
@@ -120,7 +120,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
120
120
|
|
|
121
121
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
122
122
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
123
|
-
if ((faqElementMaxCountInContents as number) >=
|
|
123
|
+
if ((faqElementMaxCountInContents as number) >= 2) {
|
|
124
124
|
template.description = template.description.replaceAll(
|
|
125
125
|
/<div\s+itemscope=""\s+itemtype="https:\/\/schema\.org\/FAQPage">/gi,
|
|
126
126
|
'<div>'
|
|
@@ -188,11 +188,11 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
188
188
|
</div>
|
|
189
189
|
|
|
190
190
|
<article
|
|
191
|
-
itemScope={(faqElementMaxCountInContents as number) >=
|
|
191
|
+
itemScope={(faqElementMaxCountInContents as number) >= 2 ? undefined : true}
|
|
192
192
|
itemType={
|
|
193
|
-
(faqElementMaxCountInContents as number) >=
|
|
194
|
-
?
|
|
195
|
-
:
|
|
193
|
+
(faqElementMaxCountInContents as number) >= 2
|
|
194
|
+
? undefined
|
|
195
|
+
: 'https://schema.org/FAQPage'
|
|
196
196
|
}
|
|
197
197
|
>
|
|
198
198
|
{/*목차*/}
|
|
@@ -3,13 +3,13 @@ import { htmlUrlDecode } from '../../../../lib';
|
|
|
3
3
|
const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
4
4
|
const { active_faq } = h2Template;
|
|
5
5
|
const getItemScope = () => {
|
|
6
|
-
if (active_faq || faqCount >=
|
|
6
|
+
if (active_faq || faqCount >= 2) {
|
|
7
7
|
return undefined;
|
|
8
8
|
}
|
|
9
9
|
return true;
|
|
10
10
|
};
|
|
11
11
|
const getItemProp = (category) => {
|
|
12
|
-
if (active_faq || faqCount >=
|
|
12
|
+
if (active_faq || faqCount >= 2) {
|
|
13
13
|
return undefined;
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
@@ -28,7 +28,7 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
const getItemType = (category) => {
|
|
31
|
-
if (active_faq || faqCount >=
|
|
31
|
+
if (active_faq || faqCount >= 2) {
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
@@ -17,7 +17,7 @@ const H2Contents = ({
|
|
|
17
17
|
const { active_faq } = h2Template;
|
|
18
18
|
|
|
19
19
|
const getItemScope = (): boolean | undefined => {
|
|
20
|
-
if (active_faq || (faqCount as number) >=
|
|
20
|
+
if (active_faq || (faqCount as number) >= 2) {
|
|
21
21
|
return undefined;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ const H2Contents = ({
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
28
|
-
if (active_faq || (faqCount as number) >=
|
|
28
|
+
if (active_faq || (faqCount as number) >= 2) {
|
|
29
29
|
return undefined;
|
|
30
30
|
} else {
|
|
31
31
|
switch (category) {
|
|
@@ -44,7 +44,7 @@ const H2Contents = ({
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
47
|
-
if (active_faq || (faqCount as number) >=
|
|
47
|
+
if (active_faq || (faqCount as number) >= 2) {
|
|
48
48
|
return undefined;
|
|
49
49
|
} else {
|
|
50
50
|
switch (category) {
|