@daeryun/dr_components 0.6.68 → 0.6.70

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.
@@ -4,8 +4,7 @@ import Image from 'next/image';
4
4
  import React, { useEffect, useRef, useState } from 'react';
5
5
  import * as gtag from '../../lib/gtag';
6
6
  import Link from 'next/link';
7
- import { getDomainHandler, insert } from '../../lib';
8
- import { savePowerLinkConversion } from '../../lib';
7
+ import { getDomainHandler, insert, savePowerLinkConversion } from '../../lib';
9
8
  import Wrapper from '../Layout/Wrapper';
10
9
  import TopBtn from './TopBtn';
11
10
  import { usePathname, useRouter } from 'next/navigation';
@@ -17,6 +16,8 @@ import sns04 from '../../asset/images/footer/sns_04.webp';
17
16
  import sns05 from '../../asset/images/footer/sns_05.webp';
18
17
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
19
18
  import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
19
+ import { useActionGetTermList } from './_actions/action';
20
+ import { ITermType } from '../page/Login/_types/termType';
20
21
 
21
22
  interface GroupsProps {
22
23
  list: IGroupsData[];
@@ -460,29 +461,29 @@ const NewFooter = ({
460
461
 
461
462
  export default NewFooter;
462
463
 
463
- const FooterLinkList = () => {
464
+ export const FooterLinkList = () => {
465
+ /**
466
+ * 로그인 반영 후 푸터
467
+ */
468
+
469
+ const { data }: { data: ITermType[] } = useActionGetTermList();
470
+
464
471
  return (
465
472
  <>
466
- <p>
467
- <Link href={'https://www.daeryunlaw.com/common/disclaimer'} target={'_blank'}>
468
- 면책공고
469
- </Link>
470
- </p>
471
- <p>
472
- <Link href={'https://www.daeryunlaw.com/common/limited-liability'} target={'_blank'}>
473
- 유한책임
474
- </Link>
475
- </p>
476
- <p>
477
- <Link href={'https://www.daeryunlaw.com/common/privacy-policy'} target={'_blank'}>
478
- 개인정보처리방침
479
- </Link>
480
- </p>
481
- <p>
482
- <Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
483
- 이메일무단수집거부
484
- </Link>
485
- </p>
473
+ {data && data.length > 0
474
+ ? data?.map((item, key) => {
475
+ return (
476
+ <p key={key}>
477
+ <Link
478
+ href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`}
479
+ target={'_blank'}
480
+ >
481
+ {item.terms_name}
482
+ </Link>
483
+ </p>
484
+ );
485
+ })
486
+ : null}
486
487
  <p className={'text-[#285FA7]'}>
487
488
  <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
488
489
  고객만족센터
@@ -490,6 +491,39 @@ const FooterLinkList = () => {
490
491
  </p>
491
492
  </>
492
493
  );
494
+
495
+ /**
496
+ * 기존 푸터
497
+ */
498
+ // return (
499
+ // <>
500
+ // <p>
501
+ // <Link href={'https://www.daeryunlaw.com/common/disclaimer'} target={'_blank'}>
502
+ // 면책공고
503
+ // </Link>
504
+ // </p>
505
+ // <p>
506
+ // <Link href={'https://www.daeryunlaw.com/common/limited-liability'} target={'_blank'}>
507
+ // 유한책임
508
+ // </Link>
509
+ // </p>
510
+ // <p>
511
+ // <Link href={'https://www.daeryunlaw.com/common/privacy-policy'} target={'_blank'}>
512
+ // 개인정보처리방침
513
+ // </Link>
514
+ // </p>
515
+ // <p>
516
+ // <Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
517
+ // 이메일무단수집거부
518
+ // </Link>
519
+ // </p>
520
+ // <p className={'text-[#285FA7]'}>
521
+ // <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
522
+ // 고객만족센터
523
+ // </Link>
524
+ // </p>
525
+ // </>
526
+ // );
493
527
  };
494
528
 
495
529
  const FooterSelectBox = (props: {
@@ -2,7 +2,7 @@ export declare const getSearchKeywordJson: (searchKeywords: {
2
2
  code_name: string;
3
3
  survey_title: string;
4
4
  }[]) => {
5
- [key: string]: string[];
5
+ [x: string]: string[];
6
6
  };
7
7
  export declare const tabTypes: {
8
8
  tab: string;
@@ -239,12 +239,16 @@ const CareerList = ({ lawyerInfo, careerList, certiList, codeList, speciality, s
239
239
  <ul className={'w-full'}>
240
240
  {speciality.map((item, index) => {
241
241
  // prettier-ignore
242
- const url = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
242
+ const getUrl = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
243
243
  ? codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt))[0].etc2
244
244
  : 'https://www.daeryunlaw.com/';
245
245
  const careerTxt = item.career_txt
246
246
  ? item.career_txt.replace('일반소송', '민사').replace('중재', '손해배상')
247
247
  : '';
248
+ const url = (item.career_txt === '디지털포렌식' || item.career_txt === '경호') &&
249
+ getUrl === ''
250
+ ? 'https://www.daeryunlaw-discovery.com/'
251
+ : getUrl;
248
252
  return (<Link href={url} target="_blank" key={'관련 업무분야 ' + index} className={'mr-[5px] mt-[5px] inline-block basis-[100%] flex-wrap rounded-[20px] border-[1px] border-solid border-[#dfdfdf] px-[10px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#555] ' +
249
253
  'group hover:border-[#285FA7] hover:text-[#285FA7] '}>
250
254
  <span className={'flex items-center gap-[2px]'}>
@@ -415,14 +415,20 @@ const CareerList = ({
415
415
  <ul className={'w-full'}>
416
416
  {speciality.map((item, index: number) => {
417
417
  // prettier-ignore
418
- const url = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
419
- ? codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt))[0].etc2
420
- : 'https://www.daeryunlaw.com/';
418
+ const getUrl = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
419
+ ? codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt))[0].etc2
420
+ : 'https://www.daeryunlaw.com/';
421
421
 
422
422
  const careerTxt = item.career_txt
423
423
  ? item.career_txt.replace('일반소송', '민사').replace('중재', '손해배상')
424
424
  : '';
425
425
 
426
+ const url =
427
+ (item.career_txt === '디지털포렌식' || item.career_txt === '경호') &&
428
+ getUrl === ''
429
+ ? 'https://www.daeryunlaw-discovery.com/'
430
+ : getUrl;
431
+
426
432
  return (
427
433
  <Link
428
434
  href={url}
@@ -28,12 +28,16 @@ const MobileSpeciality = ({ speciality, codeList, maxLines, integrateSearch, isU
28
28
  <ul className={'h-fit w-full'} id={'field_box'}>
29
29
  {speciality.map((item, index) => {
30
30
  // prettier-ignore
31
- const url = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
31
+ const getUrl = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
32
32
  ? codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt))[0].etc2
33
33
  : 'https://www.daeryunlaw.com/';
34
34
  const careerTxt = item.career_txt
35
35
  ? item.career_txt.replace('일반소송', '민사').replace('중재', '손해배상')
36
36
  : '';
37
+ const url = (item.career_txt === '디지털포렌식' || item.career_txt === '경호') &&
38
+ getUrl === ''
39
+ ? 'https://www.daeryunlaw-discovery.com/'
40
+ : getUrl;
37
41
  return (<li className={'mr-[5px] mt-[5px] inline-block basis-[100%] flex-wrap rounded-[20px] border-[1px] border-solid border-[#dfdfdf] px-[10px] py-[4px] text-[16px] font-[700] tracking-[-0.9px] text-[#555] '} key={`li_key_${item}_${index}`}>
38
42
  <Link href={url} target={'_blank'} key={`a_key_${item}_${index}`}>
39
43
  <span className={'flex items-center gap-[2px]'}>
@@ -58,7 +58,7 @@ const MobileSpeciality = ({
58
58
  <ul className={'h-fit w-full'} id={'field_box'}>
59
59
  {speciality.map((item, index: number) => {
60
60
  // prettier-ignore
61
- const url = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
61
+ const getUrl = codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)) && codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt)).length > 0
62
62
  ? codeList.filter(c => c.parent_code === 'center' && c.code_name.includes(item.career_txt))[0].etc2
63
63
  : 'https://www.daeryunlaw.com/';
64
64
 
@@ -66,6 +66,12 @@ const MobileSpeciality = ({
66
66
  ? item.career_txt.replace('일반소송', '민사').replace('중재', '손해배상')
67
67
  : '';
68
68
 
69
+ const url =
70
+ (item.career_txt === '디지털포렌식' || item.career_txt === '경호') &&
71
+ getUrl === ''
72
+ ? 'https://www.daeryunlaw-discovery.com/'
73
+ : getUrl;
74
+
69
75
  return (
70
76
  <li
71
77
  className={
@@ -46,19 +46,6 @@ const SignContainer = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px
46
46
  }
47
47
  ]);
48
48
  const [optionalTermItems, setOptionalTermItems] = useState([
49
- // {
50
- // title: '사건관련 알림 수신 동의 (선택)',
51
- // checked: false,
52
- // isContent: true,
53
- // cautionTitle: '*사건관련 알림을 수신할 채널을 선택해 주세요.',
54
- // name: 'optionalMain',
55
- // alarmTypeList: [
56
- // { title: '푸시알림', name: 'optionalSelect', checked: false, value: 1 },
57
- // { title: '카카오알림톡', name: 'optionalSelect', checked: false, value: 2 },
58
- // { title: 'SMS', name: 'optionalSelect', checked: false, value: 4 },
59
- // { title: '이메일', name: 'optionalSelect', checked: false, value: 8 }
60
- // ]
61
- // },
62
49
  {
63
50
  title: '광고성 정보 및 마케팅 정보 수신 동의 (선택)',
64
51
  checked: false,
@@ -99,19 +99,6 @@ const SignContainer = ({
99
99
  ]);
100
100
 
101
101
  const [optionalTermItems, setOptionalTermItems] = useState<IOptionalCheckItem[]>([
102
- // {
103
- // title: '사건관련 알림 수신 동의 (선택)',
104
- // checked: false,
105
- // isContent: true,
106
- // cautionTitle: '*사건관련 알림을 수신할 채널을 선택해 주세요.',
107
- // name: 'optionalMain',
108
- // alarmTypeList: [
109
- // { title: '푸시알림', name: 'optionalSelect', checked: false, value: 1 },
110
- // { title: '카카오알림톡', name: 'optionalSelect', checked: false, value: 2 },
111
- // { title: 'SMS', name: 'optionalSelect', checked: false, value: 4 },
112
- // { title: '이메일', name: 'optionalSelect', checked: false, value: 8 }
113
- // ]
114
- // },
115
102
  {
116
103
  title: '광고성 정보 및 마케팅 정보 수신 동의 (선택)',
117
104
  checked: false,