@daeryun/dr_components 1.0.3 → 1.0.5
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 +2 -2
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +4 -3
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +4 -3
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +1 -0
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -122,7 +122,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
124
124
|
|
|
125
|
-
<article itemScope={faqElementMaxCountInContents >=
|
|
125
|
+
<article itemScope={faqElementMaxCountInContents >= 1 ? undefined : true} itemType={faqElementMaxCountInContents >= 1
|
|
126
126
|
? undefined
|
|
127
127
|
: 'https://schema.org/FAQPage'}>
|
|
128
128
|
{/*목차*/}
|
|
@@ -188,9 +188,9 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
188
188
|
</div>
|
|
189
189
|
|
|
190
190
|
<article
|
|
191
|
-
itemScope={(faqElementMaxCountInContents as number) >=
|
|
191
|
+
itemScope={(faqElementMaxCountInContents as number) >= 1 ? undefined : true}
|
|
192
192
|
itemType={
|
|
193
|
-
(faqElementMaxCountInContents as number) >=
|
|
193
|
+
(faqElementMaxCountInContents as number) >= 1
|
|
194
194
|
? undefined
|
|
195
195
|
: 'https://schema.org/FAQPage'
|
|
196
196
|
}
|
|
@@ -2,14 +2,15 @@ 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 faqCount :', faqCount);
|
|
5
6
|
const getItemScope = () => {
|
|
6
|
-
if (active_faq || faqCount >=
|
|
7
|
+
if (active_faq || faqCount >= 1) {
|
|
7
8
|
return undefined;
|
|
8
9
|
}
|
|
9
10
|
return true;
|
|
10
11
|
};
|
|
11
12
|
const getItemProp = (category) => {
|
|
12
|
-
if (active_faq || faqCount >=
|
|
13
|
+
if (active_faq || faqCount >= 1) {
|
|
13
14
|
return undefined;
|
|
14
15
|
}
|
|
15
16
|
else {
|
|
@@ -28,7 +29,7 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
const getItemType = (category) => {
|
|
31
|
-
if (active_faq || faqCount >=
|
|
32
|
+
if (active_faq || faqCount >= 1) {
|
|
32
33
|
return undefined;
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
@@ -15,9 +15,10 @@ const H2Contents = ({
|
|
|
15
15
|
faqCount?: number;
|
|
16
16
|
}) => {
|
|
17
17
|
const { active_faq } = h2Template;
|
|
18
|
+
console.log('h2 faqCount :', faqCount);
|
|
18
19
|
|
|
19
20
|
const getItemScope = (): boolean | undefined => {
|
|
20
|
-
if (active_faq || (faqCount as number) >=
|
|
21
|
+
if (active_faq || (faqCount as number) >= 1) {
|
|
21
22
|
return undefined;
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -25,7 +26,7 @@ const H2Contents = ({
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
const getItemProp = (category: ItemPropTypes): string | undefined => {
|
|
28
|
-
if (active_faq || (faqCount as number) >=
|
|
29
|
+
if (active_faq || (faqCount as number) >= 1) {
|
|
29
30
|
return undefined;
|
|
30
31
|
} else {
|
|
31
32
|
switch (category) {
|
|
@@ -44,7 +45,7 @@ const H2Contents = ({
|
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
const getItemType = (category: ItemTypes): string | undefined => {
|
|
47
|
-
if (active_faq || (faqCount as number) >=
|
|
48
|
+
if (active_faq || (faqCount as number) >= 1) {
|
|
48
49
|
return undefined;
|
|
49
50
|
} else {
|
|
50
51
|
switch (category) {
|
|
@@ -4,6 +4,7 @@ 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 faqCount :', faqCount);
|
|
7
8
|
const getItemScope = () => {
|
|
8
9
|
if (active_faq || faqCount >= 1) {
|
|
9
10
|
return undefined;
|
|
@@ -9,6 +9,7 @@ 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 faqCount :', faqCount);
|
|
12
13
|
|
|
13
14
|
const getItemScope = (): boolean | undefined => {
|
|
14
15
|
if (active_faq || (faqCount as number) >= 1) {
|