@daeryun/dr_components 1.0.10 → 1.0.11
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 +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +3 -3
- package/dist/components/page/SuccessNew/SuccessNewType.d.ts +1 -1
- package/dist/components/page/SuccessNew/SuccessNewType.ts +1 -1
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +3 -3
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +3 -3
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +3 -3
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -131,7 +131,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
131
131
|
{/*h2*/}
|
|
132
132
|
{h2List &&
|
|
133
133
|
h2List.map((h2Template, index) => {
|
|
134
|
-
console.log('h2Template.faqCount : ', h2Template.faqCount);
|
|
134
|
+
console.log('h2Template.faqCount : ', h2Template === null || h2Template === void 0 ? void 0 : h2Template.faqCount);
|
|
135
135
|
return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx}>
|
|
136
136
|
<H2Contents h2Template={convertFaqItemType(h2Template)} index={index} faqCount={h2Template.faqCount}/>
|
|
137
137
|
|
|
@@ -205,7 +205,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
205
205
|
{/*h2*/}
|
|
206
206
|
{h2List &&
|
|
207
207
|
h2List.map((h2Template, index) => {
|
|
208
|
-
console.log('h2Template.faqCount : ', h2Template
|
|
208
|
+
console.log('h2Template.faqCount : ', h2Template?.faqCount);
|
|
209
209
|
return (
|
|
210
210
|
<section
|
|
211
211
|
className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
|
|
@@ -214,7 +214,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
214
214
|
<H2Contents
|
|
215
215
|
h2Template={convertFaqItemType(h2Template)}
|
|
216
216
|
index={index}
|
|
217
|
-
faqCount={h2Template.faqCount
|
|
217
|
+
faqCount={h2Template.faqCount}
|
|
218
218
|
/>
|
|
219
219
|
|
|
220
220
|
{/*h3*/}
|
|
@@ -238,7 +238,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
238
238
|
<H3Contents
|
|
239
239
|
h3Template={convertFaqItemType(h3Template)}
|
|
240
240
|
key={'h3영역' + h3Template.idx}
|
|
241
|
-
faqCount={h3Template.faqCount
|
|
241
|
+
faqCount={h3Template.faqCount}
|
|
242
242
|
/>
|
|
243
243
|
{(refer_is_use &&
|
|
244
244
|
refer_length > 0 &&
|
|
@@ -5,13 +5,13 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
5
5
|
console.log('h2 active_faq :', active_faq);
|
|
6
6
|
console.log('h2 faqCount :', faqCount);
|
|
7
7
|
const getItemScope = () => {
|
|
8
|
-
if (active_faq === false && faqCount === 0) {
|
|
8
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
9
9
|
return true;
|
|
10
10
|
}
|
|
11
11
|
return undefined;
|
|
12
12
|
};
|
|
13
13
|
const getItemProp = (category) => {
|
|
14
|
-
if (active_faq === false && faqCount === 0) {
|
|
14
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
15
15
|
switch (category) {
|
|
16
16
|
case 'mainEntity':
|
|
17
17
|
return 'mainEntity';
|
|
@@ -28,7 +28,7 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
28
28
|
return undefined;
|
|
29
29
|
};
|
|
30
30
|
const getItemType = (category) => {
|
|
31
|
-
if (active_faq === false && faqCount === 0) {
|
|
31
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
32
32
|
switch (category) {
|
|
33
33
|
case 'question':
|
|
34
34
|
return 'https://schema.org/Question';
|
|
@@ -19,7 +19,7 @@ const H2Contents = ({
|
|
|
19
19
|
console.log('h2 faqCount :', faqCount);
|
|
20
20
|
|
|
21
21
|
const getItemScope = (): boolean | undefined => {
|
|
22
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
22
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
23
23
|
return true;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ const H2Contents = ({
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
30
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
30
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
31
31
|
switch (category) {
|
|
32
32
|
case 'mainEntity':
|
|
33
33
|
return 'mainEntity';
|
|
@@ -46,7 +46,7 @@ const H2Contents = ({
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
49
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
49
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
50
50
|
switch (category) {
|
|
51
51
|
case 'question':
|
|
52
52
|
return 'https://schema.org/Question';
|
|
@@ -7,13 +7,13 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
7
7
|
console.log('h3 active_faq :', active_faq);
|
|
8
8
|
console.log('h3 faqCount :', faqCount);
|
|
9
9
|
const getItemScope = () => {
|
|
10
|
-
if (active_faq === false && faqCount === 0) {
|
|
10
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
11
11
|
return true;
|
|
12
12
|
}
|
|
13
13
|
return undefined;
|
|
14
14
|
};
|
|
15
15
|
const getItemProp = (category) => {
|
|
16
|
-
if (active_faq === false && faqCount === 0) {
|
|
16
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
17
17
|
switch (category) {
|
|
18
18
|
case 'mainEntity':
|
|
19
19
|
return 'mainEntity';
|
|
@@ -30,7 +30,7 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
30
30
|
return undefined;
|
|
31
31
|
};
|
|
32
32
|
const getItemType = (category) => {
|
|
33
|
-
if (active_faq === false && faqCount === 0) {
|
|
33
|
+
if (active_faq === false && (faqCount === 0 || faqCount === undefined)) {
|
|
34
34
|
switch (category) {
|
|
35
35
|
case 'question':
|
|
36
36
|
return 'https://schema.org/Question';
|
|
@@ -13,7 +13,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
13
13
|
console.log('h3 faqCount :', faqCount);
|
|
14
14
|
|
|
15
15
|
const getItemScope = (): boolean | undefined => {
|
|
16
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
16
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
17
17
|
return true;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
24
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
24
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
25
25
|
switch (category) {
|
|
26
26
|
case 'mainEntity':
|
|
27
27
|
return 'mainEntity';
|
|
@@ -40,7 +40,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
43
|
-
if (active_faq === false && (faqCount as number) === 0) {
|
|
43
|
+
if (active_faq === false && ((faqCount as number) === 0 || faqCount === undefined)) {
|
|
44
44
|
switch (category) {
|
|
45
45
|
case 'question':
|
|
46
46
|
return 'https://schema.org/Question';
|