@daeryun/dr_components 0.9.83 → 0.9.85
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 +2 -3
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +17 -10
- package/dist/components/page/LawInfoNew/LawInfoNewTypes.d.ts +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNewTypes.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -89,15 +89,14 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
89
89
|
};
|
|
90
90
|
const convertFaqItemType = (template) => {
|
|
91
91
|
if (faqCount >= 2) {
|
|
92
|
-
template.description = template.description
|
|
93
|
-
.replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
|
|
92
|
+
template.description = template.description.replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
|
|
94
93
|
return template;
|
|
95
94
|
}
|
|
96
95
|
return template;
|
|
97
96
|
};
|
|
98
97
|
return (<div itemScope={handleFaqItemScope(isFaqActive, faqCount)} itemType={handleFaqItemType(isFaqActive, faqCount)} ref={printRef}>
|
|
99
98
|
<div id={'sub_contents'}>
|
|
100
|
-
<div className="
|
|
99
|
+
<div className="relative m-auto mb-[60px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
|
|
101
100
|
<div className={'m-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
|
|
102
101
|
//1700px
|
|
103
102
|
'max-5xl:gap-[80px] ' +
|
|
@@ -120,17 +120,18 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
123
|
-
if (faqCount as number >= 2) {
|
|
124
|
-
template.description = template.description
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
if ((faqCount as number) >= 2) {
|
|
124
|
+
template.description = template.description.replace(
|
|
125
|
+
/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi,
|
|
126
|
+
''
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
return template;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
return template;
|
|
131
133
|
};
|
|
132
134
|
|
|
133
|
-
|
|
134
135
|
return (
|
|
135
136
|
<div
|
|
136
137
|
itemScope={handleFaqItemScope(isFaqActive, faqCount as number)}
|
|
@@ -138,7 +139,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
138
139
|
ref={printRef}
|
|
139
140
|
>
|
|
140
141
|
<div id={'sub_contents'}>
|
|
141
|
-
<div className="
|
|
142
|
+
<div className="relative m-auto mb-[60px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
|
|
142
143
|
<div
|
|
143
144
|
className={
|
|
144
145
|
'm-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
|
|
@@ -201,10 +202,16 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
201
202
|
<section
|
|
202
203
|
className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
|
|
203
204
|
key={'h2영역' + h2Template.idx}
|
|
204
|
-
itemScope={faqCount as number >= 2 ? undefined : true}
|
|
205
|
-
itemType={
|
|
205
|
+
itemScope={(faqCount as number) >= 2 ? undefined : true}
|
|
206
|
+
itemType={
|
|
207
|
+
(faqCount as number) >= 2 ? undefined : 'https://schema.org/FAQPage'
|
|
208
|
+
}
|
|
206
209
|
>
|
|
207
|
-
<H2Contents
|
|
210
|
+
<H2Contents
|
|
211
|
+
h2Template={convertFaqItemType(h2Template)}
|
|
212
|
+
index={index}
|
|
213
|
+
faqCount={faqCount as number}
|
|
214
|
+
/>
|
|
208
215
|
|
|
209
216
|
{/*h3*/}
|
|
210
217
|
{template
|