@daeryun/dr_components 0.6.92 → 0.6.93
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.
|
@@ -322,7 +322,8 @@ export const FooterLinkList = () => {
|
|
|
322
322
|
};
|
|
323
323
|
const FooterSelectBox = (props) => {
|
|
324
324
|
const { isBrochureBtn, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
|
|
325
|
-
console.log(groupsData);
|
|
325
|
+
console.log('groupsData', groupsData);
|
|
326
|
+
const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
|
|
326
327
|
return (<div className={(isBrochureBtn ? 'max-xs:w-full' : '') + ' xl:ml-auto'}>
|
|
327
328
|
<div ref={wrapperRef} className={'relative h-[68px] w-[290px] ' +
|
|
328
329
|
'max-xxl:w-[240px] ' +
|
|
@@ -342,7 +343,7 @@ const FooterSelectBox = (props) => {
|
|
|
342
343
|
zIndex: isOpen ? 50 : -9999,
|
|
343
344
|
pointerEvents: isOpen ? 'auto' : 'none'
|
|
344
345
|
}} role="listbox" aria-orientation="vertical" aria-labelledby="listbox-label" aria-expanded="true" aria-hidden="false">
|
|
345
|
-
{
|
|
346
|
+
{list.map((center, index) => center.parent_code === 'center' && (<React.Fragment key={index}>
|
|
346
347
|
<li key={center.code} value={center.code_name} className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
|
|
347
348
|
<Link href={center.domain} key={index} target="_blank" title={'새창열기'} onClick={() => {
|
|
348
349
|
setIsOpen(!isOpen);
|
|
@@ -352,24 +353,24 @@ const FooterSelectBox = (props) => {
|
|
|
352
353
|
: center.code_name + center.gubun}
|
|
353
354
|
</Link>
|
|
354
355
|
</li>
|
|
355
|
-
{
|
|
356
|
+
{list.map((in_center, index2) => {
|
|
356
357
|
return (in_center.parent_code === 'in_center' &&
|
|
357
358
|
center.code === in_center.etc && (<React.Fragment key={in_center.code}>
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
359
|
+
<li key={in_center.code} value={in_center.code_name} className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
|
|
360
|
+
<Link href={in_center.domain} key={index2} target="_blank" title={'새창열기'}>
|
|
361
|
+
<p className={'pl-3'}>
|
|
362
|
+
{in_center.code_name}
|
|
363
|
+
{in_center.gubun}
|
|
364
|
+
</p>
|
|
365
|
+
</Link>
|
|
366
|
+
</li>
|
|
367
|
+
{/*경영권분쟁센터 밑에 기업인수 합병센터 강제 추가*/}
|
|
368
|
+
{in_center.code === 'ICT0005' ? (<li key={'기업인수 합병센터'} value={in_center.code_name} className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
|
|
369
|
+
<Link href={'https://www.daeryunlaw-mergers.com/'} target="_blank" title={'새창열기'}>
|
|
370
|
+
<p className={'pl-3'}>기업인수·합병(M&A)센터</p>
|
|
364
371
|
</Link>
|
|
365
|
-
</li>
|
|
366
|
-
|
|
367
|
-
{in_center.code === 'ICT0005' ? (<li key={in_center.code} value={in_center.code_name} className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
|
|
368
|
-
<Link href={'https://www.daeryunlaw-mergers.com/'} target="_blank" title={'새창열기'}>
|
|
369
|
-
<p className={'pl-3'}>기업인수·합병(M&A)센터</p>
|
|
370
|
-
</Link>
|
|
371
|
-
</li>) : (<></>)}
|
|
372
|
-
</React.Fragment>));
|
|
372
|
+
</li>) : (<></>)}
|
|
373
|
+
</React.Fragment>));
|
|
373
374
|
})}
|
|
374
375
|
</React.Fragment>))}
|
|
375
376
|
</ul>
|
|
@@ -546,7 +546,9 @@ const FooterSelectBox = (props: {
|
|
|
546
546
|
groupsData: ICenterLinkTypes[] | null;
|
|
547
547
|
}) => {
|
|
548
548
|
const { isBrochureBtn, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
|
|
549
|
-
console.log(groupsData);
|
|
549
|
+
console.log('groupsData', groupsData);
|
|
550
|
+
|
|
551
|
+
const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
|
|
550
552
|
return (
|
|
551
553
|
<div className={(isBrochureBtn ? 'max-xs:w-full' : '') + ' xl:ml-auto'}>
|
|
552
554
|
<div
|
|
@@ -590,7 +592,7 @@ const FooterSelectBox = (props: {
|
|
|
590
592
|
aria-expanded="true"
|
|
591
593
|
aria-hidden="false"
|
|
592
594
|
>
|
|
593
|
-
{
|
|
595
|
+
{list.map(
|
|
594
596
|
(center, index: number) =>
|
|
595
597
|
center.parent_code === 'center' && (
|
|
596
598
|
<React.Fragment key={index}>
|
|
@@ -613,52 +615,50 @@ const FooterSelectBox = (props: {
|
|
|
613
615
|
: center.code_name + center.gubun}
|
|
614
616
|
</Link>
|
|
615
617
|
</li>
|
|
616
|
-
{(
|
|
617
|
-
(
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
<
|
|
618
|
+
{list.map((in_center, index2) => {
|
|
619
|
+
return (
|
|
620
|
+
in_center.parent_code === 'in_center' &&
|
|
621
|
+
center.code === in_center.etc && (
|
|
622
|
+
<React.Fragment key={in_center.code}>
|
|
623
|
+
<li
|
|
624
|
+
key={in_center.code}
|
|
625
|
+
value={in_center.code_name}
|
|
626
|
+
className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
|
|
627
|
+
>
|
|
628
|
+
<Link
|
|
629
|
+
href={in_center.domain}
|
|
630
|
+
key={index2}
|
|
631
|
+
target="_blank"
|
|
632
|
+
title={'새창열기'}
|
|
633
|
+
>
|
|
634
|
+
<p className={'pl-3'}>
|
|
635
|
+
{in_center.code_name}
|
|
636
|
+
{in_center.gubun}
|
|
637
|
+
</p>
|
|
638
|
+
</Link>
|
|
639
|
+
</li>
|
|
640
|
+
{/*경영권분쟁센터 밑에 기업인수 합병센터 강제 추가*/}
|
|
641
|
+
{in_center.code === 'ICT0005' ? (
|
|
622
642
|
<li
|
|
623
|
-
key={
|
|
643
|
+
key={'기업인수 합병센터'}
|
|
624
644
|
value={in_center.code_name}
|
|
625
645
|
className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
|
|
626
646
|
>
|
|
627
647
|
<Link
|
|
628
|
-
href={
|
|
629
|
-
key={index2}
|
|
648
|
+
href={'https://www.daeryunlaw-mergers.com/'}
|
|
630
649
|
target="_blank"
|
|
631
650
|
title={'새창열기'}
|
|
632
651
|
>
|
|
633
|
-
<p className={'pl-3'}>
|
|
634
|
-
{in_center.code_name}
|
|
635
|
-
{in_center.gubun}
|
|
636
|
-
</p>
|
|
652
|
+
<p className={'pl-3'}>기업인수·합병(M&A)센터</p>
|
|
637
653
|
</Link>
|
|
638
654
|
</li>
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
<Link
|
|
647
|
-
href={'https://www.daeryunlaw-mergers.com/'}
|
|
648
|
-
target="_blank"
|
|
649
|
-
title={'새창열기'}
|
|
650
|
-
>
|
|
651
|
-
<p className={'pl-3'}>기업인수·합병(M&A)센터</p>
|
|
652
|
-
</Link>
|
|
653
|
-
</li>
|
|
654
|
-
) : (
|
|
655
|
-
<></>
|
|
656
|
-
)}
|
|
657
|
-
</React.Fragment>
|
|
658
|
-
)
|
|
659
|
-
);
|
|
660
|
-
}
|
|
661
|
-
)}
|
|
655
|
+
) : (
|
|
656
|
+
<></>
|
|
657
|
+
)}
|
|
658
|
+
</React.Fragment>
|
|
659
|
+
)
|
|
660
|
+
);
|
|
661
|
+
})}
|
|
662
662
|
</React.Fragment>
|
|
663
663
|
)
|
|
664
664
|
)}
|