@daeryun/dr_components 1.2.51 → 1.2.52
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import ContentList from '../SuccessNew/components/ContentList';
|
|
3
|
-
import { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import useBrowser from '../../hook/useBrowser';
|
|
5
5
|
import { htmlUrlDecode } from '../../../lib';
|
|
6
6
|
import H2Contents from '../SuccessNew/components/H2Contents';
|
|
@@ -133,8 +133,8 @@ const LawInfoNewView = ({ data, tel }) => {
|
|
|
133
133
|
const news_is_use = h3Template.news_is_use;
|
|
134
134
|
const news_length = newsLinkList.length;
|
|
135
135
|
const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
136
|
-
return (
|
|
137
|
-
<H3Contents h3Template={convertFaqItemType(h3Template)}
|
|
136
|
+
return (<Fragment key={'h3Contents_section_' + h3Template.idx}>
|
|
137
|
+
<H3Contents h3Template={convertFaqItemType(h3Template)} faqCount={h3Template === null || h3Template === void 0 ? void 0 : h3Template.faqCount}/>
|
|
138
138
|
{(refer_is_use &&
|
|
139
139
|
refer_length > 0 &&
|
|
140
140
|
refer_content_length > 0) ||
|
|
@@ -146,7 +146,7 @@ const LawInfoNewView = ({ data, tel }) => {
|
|
|
146
146
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
147
147
|
{news_is_use && news_length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
148
148
|
</span>) : (<></>)}
|
|
149
|
-
|
|
149
|
+
</Fragment>);
|
|
150
150
|
})}
|
|
151
151
|
<span className={'flex flex-col gap-[26px] max-2sm:gap-[16px]'}>
|
|
152
152
|
{h2Template.reference_is_use && referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import ContentList from '../SuccessNew/components/ContentList';
|
|
4
|
-
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import useBrowser from '../../hook/useBrowser';
|
|
6
6
|
import { ILawyerTypes, ISeoTemplateTypes } from '../SuccessNew/SuccessNewType';
|
|
7
7
|
import { htmlUrlDecode } from '../../../lib';
|
|
@@ -213,10 +213,9 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
213
213
|
).length;
|
|
214
214
|
|
|
215
215
|
return (
|
|
216
|
-
|
|
216
|
+
<Fragment key={'h3Contents_section_' + h3Template.idx}>
|
|
217
217
|
<H3Contents
|
|
218
218
|
h3Template={convertFaqItemType(h3Template)}
|
|
219
|
-
key={'h3영역' + h3Template.idx}
|
|
220
219
|
faqCount={h3Template?.faqCount}
|
|
221
220
|
/>
|
|
222
221
|
{(refer_is_use &&
|
|
@@ -252,7 +251,7 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
252
251
|
) : (
|
|
253
252
|
<></>
|
|
254
253
|
)}
|
|
255
|
-
|
|
254
|
+
</Fragment>
|
|
256
255
|
);
|
|
257
256
|
})}
|
|
258
257
|
<span className={'flex flex-col gap-[26px] max-2sm:gap-[16px]'}>
|