@daeryun/dr_components 1.0.11 → 1.0.13
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.
|
@@ -75,13 +75,13 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
75
75
|
}
|
|
76
76
|
}, [template]);
|
|
77
77
|
const handleFaqItemType = (isFaqActive, faqCount) => {
|
|
78
|
-
if (isFaqActive || faqCount >=
|
|
78
|
+
if (isFaqActive || faqCount >= 2) {
|
|
79
79
|
return undefined;
|
|
80
80
|
}
|
|
81
81
|
return 'https://schema.org/FAQPage';
|
|
82
82
|
};
|
|
83
83
|
const handleFaqItemScope = (isFaqActive, faqCount) => {
|
|
84
|
-
if (isFaqActive || faqCount >=
|
|
84
|
+
if (isFaqActive || faqCount >= 2) {
|
|
85
85
|
return undefined;
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
@@ -89,7 +89,8 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
89
89
|
const convertFaqItemType = (template) => {
|
|
90
90
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
91
91
|
if (faqElementMaxCountInContents >= 2) {
|
|
92
|
-
template
|
|
92
|
+
// 해당 게시글에 faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
93
|
+
template.description = template.description.replaceAll('<div itemscope="" itemtype="https://schema.org/FAQPage">', '<div>');
|
|
93
94
|
return template;
|
|
94
95
|
}
|
|
95
96
|
return template;
|
|
@@ -103,7 +103,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
103
103
|
}, [template]);
|
|
104
104
|
|
|
105
105
|
const handleFaqItemType = (isFaqActive: boolean, faqCount: number): string | undefined => {
|
|
106
|
-
if (isFaqActive || faqCount >=
|
|
106
|
+
if (isFaqActive || faqCount >= 2) {
|
|
107
107
|
return undefined;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -111,7 +111,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
const handleFaqItemScope = (isFaqActive: boolean, faqCount: number): true | undefined => {
|
|
114
|
-
if (isFaqActive || faqCount >=
|
|
114
|
+
if (isFaqActive || faqCount >= 2) {
|
|
115
115
|
return undefined;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -121,8 +121,9 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
121
121
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
122
122
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
123
123
|
if ((faqElementMaxCountInContents as number) >= 2) {
|
|
124
|
+
// 해당 게시글에 faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
124
125
|
template.description = template.description.replaceAll(
|
|
125
|
-
|
|
126
|
+
'<div itemscope="" itemtype="https://schema.org/FAQPage">',
|
|
126
127
|
'<div>'
|
|
127
128
|
);
|
|
128
129
|
|