@daeryun/dr_components 1.0.5 → 1.0.7
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/SuccessNew/components/H2Contents.jsx +8 -11
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +10 -9
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +8 -11
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +10 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,18 +2,16 @@ import React from 'react';
|
|
|
2
2
|
import { htmlUrlDecode } from '../../../../lib';
|
|
3
3
|
const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
4
4
|
const { active_faq } = h2Template;
|
|
5
|
+
console.log('h2 active_faq :', active_faq);
|
|
5
6
|
console.log('h2 faqCount :', faqCount);
|
|
6
7
|
const getItemScope = () => {
|
|
7
|
-
if (active_faq
|
|
8
|
-
return
|
|
8
|
+
if (active_faq === false && faqCount === 0) {
|
|
9
|
+
return true;
|
|
9
10
|
}
|
|
10
|
-
return
|
|
11
|
+
return undefined;
|
|
11
12
|
};
|
|
12
13
|
const getItemProp = (category) => {
|
|
13
|
-
if (active_faq
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
14
|
+
if (active_faq === false && faqCount === 0) {
|
|
17
15
|
switch (category) {
|
|
18
16
|
case 'mainEntity':
|
|
19
17
|
return 'mainEntity';
|
|
@@ -27,12 +25,10 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
27
25
|
undefined;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
28
|
+
return undefined;
|
|
30
29
|
};
|
|
31
30
|
const getItemType = (category) => {
|
|
32
|
-
if (active_faq
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
31
|
+
if (active_faq === false && faqCount === 0) {
|
|
36
32
|
switch (category) {
|
|
37
33
|
case 'question':
|
|
38
34
|
return 'https://schema.org/Question';
|
|
@@ -42,6 +38,7 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
42
38
|
undefined;
|
|
43
39
|
}
|
|
44
40
|
}
|
|
41
|
+
return undefined;
|
|
45
42
|
};
|
|
46
43
|
return (<div itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
47
44
|
<h2 className={'flex h-fit w-full items-center break-keep rounded-[40px] bg-[#285FA7] py-[6.75px] pl-[40px] pr-[20px] -indent-[20px] text-[20px] font-bold leading-[28px] tracking-tight text-white sm:pl-[46px] sm:pr-[26px] sm:text-[26px] sm:leading-[34px] lg:pl-[53px] lg:pr-[33px] lg:text-[31.5px] lg:leading-[38px]'} id={h2Template.idx.toString()} itemProp={getItemProp('name')}>
|
|
@@ -15,20 +15,19 @@ const H2Contents = ({
|
|
|
15
15
|
faqCount?: number;
|
|
16
16
|
}) => {
|
|
17
17
|
const { active_faq } = h2Template;
|
|
18
|
+
console.log('h2 active_faq :', active_faq);
|
|
18
19
|
console.log('h2 faqCount :', faqCount);
|
|
19
20
|
|
|
20
21
|
const getItemScope = (): boolean | undefined => {
|
|
21
|
-
if (active_faq
|
|
22
|
-
return
|
|
22
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
23
|
+
return true;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
return
|
|
26
|
+
return undefined;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
29
|
-
if (active_faq
|
|
30
|
-
return undefined;
|
|
31
|
-
} else {
|
|
30
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
32
31
|
switch (category) {
|
|
33
32
|
case 'mainEntity':
|
|
34
33
|
return 'mainEntity';
|
|
@@ -42,12 +41,12 @@ const H2Contents = ({
|
|
|
42
41
|
undefined;
|
|
43
42
|
}
|
|
44
43
|
}
|
|
44
|
+
|
|
45
|
+
return undefined;
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
48
|
-
if (active_faq
|
|
49
|
-
return undefined;
|
|
50
|
-
} else {
|
|
49
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
51
50
|
switch (category) {
|
|
52
51
|
case 'question':
|
|
53
52
|
return 'https://schema.org/Question';
|
|
@@ -57,6 +56,8 @@ const H2Contents = ({
|
|
|
57
56
|
undefined;
|
|
58
57
|
}
|
|
59
58
|
}
|
|
59
|
+
|
|
60
|
+
return undefined;
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
return (
|
|
@@ -4,18 +4,16 @@ import { htmlUrlDecode } from '../../../../lib';
|
|
|
4
4
|
import FieldIcon from '../../../../asset/images/success_new/field_icon.webp';
|
|
5
5
|
const H3Contents = ({ h3Template, faqCount }) => {
|
|
6
6
|
const { active_faq } = h3Template;
|
|
7
|
+
console.log('h3 active_faq :', active_faq);
|
|
7
8
|
console.log('h3 faqCount :', faqCount);
|
|
8
9
|
const getItemScope = () => {
|
|
9
|
-
if (active_faq
|
|
10
|
-
return
|
|
10
|
+
if (active_faq === false && faqCount === 0) {
|
|
11
|
+
return true;
|
|
11
12
|
}
|
|
12
|
-
return
|
|
13
|
+
return undefined;
|
|
13
14
|
};
|
|
14
15
|
const getItemProp = (category) => {
|
|
15
|
-
if (active_faq
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
16
|
+
if (active_faq === false && faqCount === 0) {
|
|
19
17
|
switch (category) {
|
|
20
18
|
case 'mainEntity':
|
|
21
19
|
return 'mainEntity';
|
|
@@ -29,12 +27,10 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
29
27
|
undefined;
|
|
30
28
|
}
|
|
31
29
|
}
|
|
30
|
+
return undefined;
|
|
32
31
|
};
|
|
33
32
|
const getItemType = (category) => {
|
|
34
|
-
if (active_faq
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
33
|
+
if (active_faq === false && faqCount === 0) {
|
|
38
34
|
switch (category) {
|
|
39
35
|
case 'question':
|
|
40
36
|
return 'https://schema.org/Question';
|
|
@@ -44,6 +40,7 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
44
40
|
undefined;
|
|
45
41
|
}
|
|
46
42
|
}
|
|
43
|
+
return undefined;
|
|
47
44
|
};
|
|
48
45
|
return (<>
|
|
49
46
|
<div className={'px-[10px] sm:px-[18px]'} key={'h3영역' + h3Template.idx} itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
@@ -9,20 +9,19 @@ type ItemTypes = 'question' | 'answer';
|
|
|
9
9
|
|
|
10
10
|
const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; faqCount?: number }) => {
|
|
11
11
|
const { active_faq } = h3Template;
|
|
12
|
+
console.log('h3 active_faq :', active_faq);
|
|
12
13
|
console.log('h3 faqCount :', faqCount);
|
|
13
14
|
|
|
14
15
|
const getItemScope = (): boolean | undefined => {
|
|
15
|
-
if (active_faq
|
|
16
|
-
return
|
|
16
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
17
|
+
return true;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
return
|
|
20
|
+
return undefined;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
23
|
-
if (active_faq
|
|
24
|
-
return undefined;
|
|
25
|
-
} else {
|
|
24
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
26
25
|
switch (category) {
|
|
27
26
|
case 'mainEntity':
|
|
28
27
|
return 'mainEntity';
|
|
@@ -36,12 +35,12 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
36
35
|
undefined;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
38
|
+
|
|
39
|
+
return undefined;
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
42
|
-
if (active_faq
|
|
43
|
-
return undefined;
|
|
44
|
-
} else {
|
|
43
|
+
if (active_faq === false && (faqCount as number) === 0) {
|
|
45
44
|
switch (category) {
|
|
46
45
|
case 'question':
|
|
47
46
|
return 'https://schema.org/Question';
|
|
@@ -51,6 +50,8 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
51
50
|
undefined;
|
|
52
51
|
}
|
|
53
52
|
}
|
|
53
|
+
|
|
54
|
+
return undefined;
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
return (
|