@daeryun/dr_components 1.1.75 → 1.1.77

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,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { INewFooterTypes } from './IFooterTypes';
3
- declare const NewFooter: ({ groupsData, center_code, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }: INewFooterTypes) => React.JSX.Element;
3
+ declare const NewFooter: ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }: INewFooterTypes) => React.JSX.Element;
4
4
  export default NewFooter;
5
5
  export declare const FooterLinkList: () => React.JSX.Element;
@@ -24,7 +24,7 @@ import sns05 from '../../asset/images/footer/sns_05.webp';
24
24
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
25
25
  import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
26
26
  import { useActionGetTermList } from './_actions/action';
27
- const NewFooter = ({ groupsData, center_code, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }) => {
27
+ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }) => {
28
28
  const pathname = usePathname();
29
29
  const mobile = require('is-mobile');
30
30
  const [centerLink, setCenterLink] = useState([]);
@@ -168,7 +168,8 @@ const NewFooter = ({ groupsData, center_code, tel, logo, aceUrl, isBrochureBtn,
168
168
  <Wrapper id={'footer'}>
169
169
  <div className={'w-full'}>
170
170
  <div className={'mb-5 font-[800] tracking-[-0px] max-xl:mb-[50px] max-xl:flex-col max-xl:justify-center max-xl:gap-[40px] xs:flex xs:items-center ' +
171
- 'max-xl:flex-col max-lg:gap-[10px] '
171
+ 'max-xl:flex-col max-lg:gap-[10px] ' +
172
+ 'max-md:gap-0 '
172
173
  // (isBrochureBtn
173
174
  // ? ' max-xl:flex-col max-xl:gap-[40px]'
174
175
  // : isLogoLong
@@ -257,27 +258,27 @@ const NewFooter = ({ groupsData, center_code, tel, logo, aceUrl, isBrochureBtn,
257
258
  ? 'Copyright 주식회사 스카이즈코리아 all rights reserved'
258
259
  : 'Copyright 법무법인(유한) 대륜 all rights reserved'}
259
260
  </p>
260
- <div className={'flex max-xl:justify-center max-xl:gap-1'}>
261
- <Link href="https://www.scourt.go.kr/portal/information/events/search/search.jsp" target="_blank" rel="noopener noreferrer nofollow">
262
- <Image src={sns01} alt="나의 사건 검색" width={66} height={66} className={'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'}/>
261
+ <div className={'flex gap-[5px] max-xl:w-full max-xl:justify-center max-xs:gap-5 '}>
262
+ <Link href="https://www.scourt.go.kr/portal/information/events/search/search.jsp" target="_blank" title={'나의 사건 검색 새창열기'} rel="noopener noreferrer nofollow" className={'relative flex aspect-square w-11 max-md:w-[40px]'}>
263
+ <Image src={sns01} alt="나의 사건 검색" fill className={'object-contain'}/>
263
264
  </Link>
264
265
 
265
- <Link href="https://blog.naver.com/lawfirmdaeryun" target="_blank" rel="noopener noreferrer nofollow">
266
- <Image src={sns02} alt="법무법인(유한) 대륜 공식블로그" width={37} height={31} className={'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'}/>
266
+ <Link href="https://blog.naver.com/lawfirmdaeryun" target="_blank" title={'법무법인(유한) 대륜 공식블로그 새창열기'} rel="noopener noreferrer nofollow" className={'relative flex aspect-square w-11 max-md:w-[40px]'}>
267
+ <Image src={sns02} alt="법무법인(유한) 대륜 공식블로그" fill className={'object-contain'}/>
267
268
  </Link>
268
269
 
269
- <Link href="https://pf.kakao.com/_xgxoTlK/chat" target="_blank" rel="noopener noreferrer nofollow" onClick={onClickKakao}>
270
- <Image src={sns03} alt="법무법인(유한) 대륜 카카오톡채널" width={66} height={66} className={'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'}/>
270
+ <Link href="https://pf.kakao.com/_xgxoTlK/chat" target="_blank" title={'법무법인(유한) 대륜 카카오톡채널 새창열기'} rel="noopener noreferrer nofollow" className={'relative flex aspect-square w-11 max-md:w-[40px]'} onClick={onClickKakao}>
271
+ <Image src={sns03} alt="법무법인(유한) 대륜 카카오톡채널" fill className={'object-contain'}/>
271
272
  </Link>
272
273
 
273
- <Link href="https://www.youtube.com/channel/UC3uX0o1sFLj5eHdvZp2T64g/featured" target="_blank" rel="noopener noreferrer nofollow">
274
- <Image draggable={false} src={sns04} alt="법무법인(유한) 대륜 유투브" width={66} height={66} className={'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'}/>
274
+ <Link href="https://www.youtube.com/channel/UC3uX0o1sFLj5eHdvZp2T64g/featured" target="_blank" title={'법무법인(유한) 대륜 유튜브 새창열기'} rel="noopener noreferrer nofollow" className={'relative flex aspect-square w-11 max-md:w-[40px]'}>
275
+ <Image draggable={false} src={sns04} alt="법무법인(유한) 대륜 유튜브" fill className={'object-contain'}/>
275
276
  </Link>
276
277
 
277
- <Link href="https://www.instagram.com/daeryun_lawfirm/?utm_medium=copy_link" target="_blank" rel="noopener noreferrer nofollow">
278
- <Image draggable={false} src={sns05} alt="법무법인(유한) 대륜 인스타그램" width={66} height={66} className={'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'}/>
278
+ <Link href="https://www.instagram.com/daeryun_lawfirm/?utm_medium=copy_link" target="_blank" title={'법무법인(유한) 대륜 인스타그램 새창열기'} rel="noopener noreferrer nofollow" className={'relative flex aspect-square w-11 max-md:w-[40px]'}>
279
+ <Image draggable={false} src={sns05} alt="법무법인(유한) 대륜 인스타그램" fill className={'object-contain'}/>
279
280
  </Link>
280
- {isBrochureBtn && isMedical ? (<MedicalBrochureBtn width={'280px'} height={'58px'} wrapClassName={'ml-4 max-xl:hidden'} className={'-translate-y-2'}/>) : isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} wrapClassName={'ml-4 max-xl:hidden'} className={'-translate-y-2'} type={brochureType}/>) : (<BrochureBtn width={'280px'} height={'58px'} className={'ml-4 -translate-y-2 max-xl:hidden'} type={'main'}/>)}
281
+ {isBrochureBtn && isMedical ? (<MedicalBrochureBtn width={'280px'} height={'58px'} wrapClassName={'ml-4 max-xl:hidden'}/>) : isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} wrapClassName={'ml-4 max-xl:hidden'} type={brochureType}/>) : (<BrochureBtn width={'280px'} height={'58px'} className={'ml-4 max-xl:hidden'} type={'main'}/>)}
281
282
  </div>
282
283
  </div>
283
284
  </Wrapper>
@@ -343,37 +344,47 @@ const FooterSelectBox = (props) => {
343
344
  const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
344
345
  return (<div className={(isBrochureBtn ? 'max-w-[300px] max-md:w-full max-xs:max-w-full ' : 'max-md:w-[260px] max-xs:w-full ') +
345
346
  ' xl:ml-auto'}>
346
- <div ref={wrapperRef} className={'relative h-[68px] w-[290px] ' +
347
- // 'max-xxl:w-[240px] ' +
348
- 'max-xl:w-[300px] ' +
349
- 'max-md:h-[53px] max-md:w-full ' +
350
- 'max-sm:h-[48px] ' +
351
- 'z-10 max-xs:mt-[8.2vw] max-xs:h-[55px] max-xs:w-full '}>
352
- <button type="button" className={'border-gray-[#707070] h-full w-full appearance-none border border-solid bg-white pr-[30px] font-normal focus:outline-8 focus:outline-blue-500 ' +
353
- // 'max-xxl:text-[16px] ' +
354
- 'max-md:text-[14px] ' +
355
- 'max-xs:px-8 max-xs:text-left max-xs:text-[16px] ' +
356
- 'max-[420px]:px-5 max-[420px]:text-[14px]'} onClick={() => setIsOpen(!isOpen)} aria-haspopup="listbox" aria-expanded="true">
357
- 법무법인 대륜 그룹 바로가기
347
+ <div ref={wrapperRef} className={'relative z-10 h-[68px] w-[290px] ' +
348
+ 'max-xl:h-[55px] max-xl:w-[300px] ' +
349
+ 'max-md:w-full ' +
350
+ 'max-xs:mt-9 max-xs:w-full '}>
351
+ <button type="button" className={'flex h-full w-full appearance-none items-center justify-between border border-solid bg-white px-5 font-normal ' +
352
+ 'focus:outline-8 focus:outline-blue-500 ' +
353
+ 'max-md:text-[16px] ' +
354
+ 'max-xs:text-[17px] '} onClick={() => setIsOpen(!isOpen)} aria-haspopup="listbox" aria-expanded="true">
355
+ SJKP 그룹 바로가기
356
+ <Image draggable={false} src={process.env.NEXT_PUBLIC_S3_URL + '/comp-asset/section10/icon_arrow_gray.webp'} alt={'select icon'} width={28} height={15} className={'h-auto w-[15px] max-sm:w-[14px] '}/>
358
357
  </button>
359
358
 
360
359
  <ul className={`absolute right-0 mt-2 h-[340px] w-full origin-top-right overflow-y-auto rounded-md bg-white pt-3 shadow-lg ring-1 ring-black ring-opacity-5 transition-all duration-150 focus:outline-none ${isOpen ? 'visible opacity-100' : 'invisible opacity-0'}`} style={{
361
360
  zIndex: isOpen ? 50 : -9999,
362
361
  pointerEvents: isOpen ? 'auto' : 'none'
363
362
  }} role="listbox" aria-orientation="vertical" aria-labelledby="listbox-label" aria-expanded="true" aria-hidden="false">
364
- {list.map((center, index) => center.parent_code === 'center' && (<React.Fragment key={index}>
365
- <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">
366
- <Link href={center.domain} key={index} target="_blank" title={'새창열기'} onClick={() => {
367
- setIsOpen(!isOpen);
368
- }}>
369
- {center.code === 'CT0000'
370
- ? '법무법인 대륜 변호사 대표사이트'
371
- : center.code_name + center.gubun}
363
+ <li className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
364
+ <Link href={'https://www.sjkplaw.com'} target="_blank" title={'새창열기'} onClick={() => {
365
+ setIsOpen(!isOpen);
366
+ }}>
367
+ 뉴욕본사 SJKP
368
+ </Link>
369
+ </li>
370
+ {list
371
+ .filter(c => c.parent_code === 'center')
372
+ .map((group, index) => {
373
+ return (<React.Fragment key={index}>
374
+ <li key={group.code} value={group.code_name} className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
375
+ <Link href={group.domain} target="_blank" title={'새창열기'} onClick={() => {
376
+ setIsOpen(!isOpen);
377
+ }}>
378
+ {group.code === 'CT0000'
379
+ ? '법무법인 대륜 대표사이트'
380
+ : group.code_name + group.gubun}
372
381
  </Link>
373
382
  </li>
374
- {list.map((in_center, index2) => {
375
- return (in_center.parent_code === 'in_center' &&
376
- center.code === in_center.etc && (<React.Fragment key={in_center.code}>
383
+
384
+ {list
385
+ .filter(c => c.etc === group.code && c.parent_code === 'in_center')
386
+ .map((in_center, index2) => {
387
+ return (<React.Fragment key={in_center.code}>
377
388
  <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">
378
389
  <Link href={in_center.domain} key={index2} target="_blank" title={'새창열기'}>
379
390
  <p className={'pl-3'}>
@@ -388,12 +399,11 @@ const FooterSelectBox = (props) => {
388
399
  <p className={'pl-3'}>기업인수·합병(M&A)센터</p>
389
400
  </Link>
390
401
  </li>) : (<></>)}
391
- </React.Fragment>));
392
- })}
393
- </React.Fragment>))}
402
+ </React.Fragment>);
403
+ })}
404
+ </React.Fragment>);
405
+ })}
394
406
  </ul>
395
-
396
- <Image draggable={false} src={process.env.NEXT_PUBLIC_S3_URL + '/comp-asset/section10/icon_arrow_gray.webp'} alt={'select icon'} width={28} height={15} className={'absolute right-[10%] top-[50%] w-[15px] translate-y-[-50%] max-sm:w-[14px]'}/>
397
407
  </div>
398
408
  </div>);
399
409
  };
@@ -21,7 +21,6 @@ import { ITermType } from '../page/Login/_types/termType';
21
21
 
22
22
  const NewFooter = ({
23
23
  groupsData,
24
- center_code,
25
24
  tel,
26
25
  logo,
27
26
  aceUrl,
@@ -190,7 +189,8 @@ const NewFooter = ({
190
189
  <div
191
190
  className={
192
191
  'mb-5 font-[800] tracking-[-0px] max-xl:mb-[50px] max-xl:flex-col max-xl:justify-center max-xl:gap-[40px] xs:flex xs:items-center ' +
193
- 'max-xl:flex-col max-lg:gap-[10px] '
192
+ 'max-xl:flex-col max-lg:gap-[10px] ' +
193
+ 'max-md:gap-0 '
194
194
  // (isBrochureBtn
195
195
  // ? ' max-xl:flex-col max-xl:gap-[40px]'
196
196
  // : isLogoLong
@@ -408,109 +408,88 @@ const NewFooter = ({
408
408
  ? 'Copyright 주식회사 스카이즈코리아 all rights reserved'
409
409
  : 'Copyright 법무법인(유한) 대륜 all rights reserved'}
410
410
  </p>
411
- <div className={'flex max-xl:justify-center max-xl:gap-1'}>
411
+ <div className={'flex gap-[5px] max-xl:w-full max-xl:justify-center max-xs:gap-5 '}>
412
412
  <Link
413
413
  href="https://www.scourt.go.kr/portal/information/events/search/search.jsp"
414
414
  target="_blank"
415
+ title={'나의 사건 검색 새창열기'}
415
416
  rel="noopener noreferrer nofollow"
417
+ className={'relative flex aspect-square w-11 max-md:w-[40px]'}
416
418
  >
417
- <Image
418
- src={sns01}
419
- alt="나의 사건 검색"
420
- width={66}
421
- height={66}
422
- className={
423
- 'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'
424
- }
425
- />
419
+ <Image src={sns01} alt="나의 사건 검색" fill className={'object-contain'} />
426
420
  </Link>
427
421
 
428
422
  <Link
429
423
  href="https://blog.naver.com/lawfirmdaeryun"
430
424
  target="_blank"
425
+ title={'법무법인(유한) 대륜 공식블로그 새창열기'}
431
426
  rel="noopener noreferrer nofollow"
427
+ className={'relative flex aspect-square w-11 max-md:w-[40px]'}
432
428
  >
433
- <Image
434
- src={sns02}
435
- alt="법무법인(유한) 대륜 공식블로그"
436
- width={37}
437
- height={31}
438
- className={
439
- 'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'
440
- }
441
- />
429
+ <Image src={sns02} alt="법무법인(유한) 대륜 공식블로그" fill className={'object-contain'} />
442
430
  </Link>
443
431
 
444
432
  <Link
445
433
  href="https://pf.kakao.com/_xgxoTlK/chat"
446
434
  target="_blank"
435
+ title={'법무법인(유한) 대륜 카카오톡채널 새창열기'}
447
436
  rel="noopener noreferrer nofollow"
437
+ className={'relative flex aspect-square w-11 max-md:w-[40px]'}
448
438
  onClick={onClickKakao}
449
439
  >
450
440
  <Image
451
441
  src={sns03}
452
442
  alt="법무법인(유한) 대륜 카카오톡채널"
453
- width={66}
454
- height={66}
455
- className={
456
- 'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'
457
- }
443
+ fill
444
+ className={'object-contain'}
458
445
  />
459
446
  </Link>
460
447
 
461
448
  <Link
462
449
  href="https://www.youtube.com/channel/UC3uX0o1sFLj5eHdvZp2T64g/featured"
463
450
  target="_blank"
451
+ title={'법무법인(유한) 대륜 유튜브 새창열기'}
464
452
  rel="noopener noreferrer nofollow"
453
+ className={'relative flex aspect-square w-11 max-md:w-[40px]'}
465
454
  >
466
455
  <Image
467
456
  draggable={false}
468
457
  src={sns04}
469
- alt="법무법인(유한) 대륜 유투브"
470
- width={66}
471
- height={66}
472
- className={
473
- 'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'
474
- }
458
+ alt="법무법인(유한) 대륜 유튜브"
459
+ fill
460
+ className={'object-contain'}
475
461
  />
476
462
  </Link>
477
463
 
478
464
  <Link
479
465
  href="https://www.instagram.com/daeryun_lawfirm/?utm_medium=copy_link"
480
466
  target="_blank"
467
+ title={'법무법인(유한) 대륜 인스타그램 새창열기'}
481
468
  rel="noopener noreferrer nofollow"
469
+ className={'relative flex aspect-square w-11 max-md:w-[40px]'}
482
470
  >
483
471
  <Image
484
472
  draggable={false}
485
473
  src={sns05}
486
474
  alt="법무법인(유한) 대륜 인스타그램"
487
- width={66}
488
- height={66}
489
- className={
490
- 'mr-[5px] h-auto w-[44px] max-md:m-0 max-md:w-[40px] max-xs:mr-[17px] max-xs:w-[45px] max-2xs:w-[40px] max-3xs:w-[35px]'
491
- }
475
+ fill
476
+ className={'object-contain'}
492
477
  />
493
478
  </Link>
494
479
  {isBrochureBtn && isMedical ? (
495
- <MedicalBrochureBtn
496
- width={'280px'}
497
- height={'58px'}
498
- wrapClassName={'ml-4 max-xl:hidden'}
499
- className={'-translate-y-2'}
500
- />
480
+ <MedicalBrochureBtn width={'280px'} height={'58px'} wrapClassName={'ml-4 max-xl:hidden'} />
501
481
  ) : isBrochureBtn ? (
502
482
  <BrochureBtn
503
483
  width={'280px'}
504
484
  height={'58px'}
505
485
  wrapClassName={'ml-4 max-xl:hidden'}
506
- className={'-translate-y-2'}
507
486
  type={brochureType}
508
487
  />
509
488
  ) : (
510
489
  <BrochureBtn
511
490
  width={'280px'}
512
491
  height={'58px'}
513
- className={'ml-4 -translate-y-2 max-xl:hidden'}
492
+ className={'ml-4 max-xl:hidden'}
514
493
  type={'main'}
515
494
  />
516
495
  )}
@@ -600,6 +579,7 @@ const FooterSelectBox = (props: {
600
579
  const { isBrochureBtn, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
601
580
 
602
581
  const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
582
+
603
583
  return (
604
584
  <div
605
585
  className={
@@ -610,28 +590,33 @@ const FooterSelectBox = (props: {
610
590
  <div
611
591
  ref={wrapperRef}
612
592
  className={
613
- 'relative h-[68px] w-[290px] ' +
614
- // 'max-xxl:w-[240px] ' +
615
- 'max-xl:w-[300px] ' +
616
- 'max-md:h-[53px] max-md:w-full ' +
617
- 'max-sm:h-[48px] ' +
618
- 'z-10 max-xs:mt-[8.2vw] max-xs:h-[55px] max-xs:w-full '
593
+ 'relative z-10 h-[68px] w-[290px] ' +
594
+ 'max-xl:h-[55px] max-xl:w-[300px] ' +
595
+ 'max-md:w-full ' +
596
+ 'max-xs:mt-9 max-xs:w-full '
619
597
  }
620
598
  >
621
599
  <button
622
600
  type="button"
623
601
  className={
624
- 'border-gray-[#707070] h-full w-full appearance-none border border-solid bg-white pr-[30px] font-normal focus:outline-8 focus:outline-blue-500 ' +
625
- // 'max-xxl:text-[16px] ' +
626
- 'max-md:text-[14px] ' +
627
- 'max-xs:px-8 max-xs:text-left max-xs:text-[16px] ' +
628
- 'max-[420px]:px-5 max-[420px]:text-[14px]'
602
+ 'flex h-full w-full appearance-none items-center justify-between border border-solid bg-white px-5 font-normal ' +
603
+ 'focus:outline-8 focus:outline-blue-500 ' +
604
+ 'max-md:text-[16px] ' +
605
+ 'max-xs:text-[17px] '
629
606
  }
630
607
  onClick={() => setIsOpen(!isOpen)}
631
608
  aria-haspopup="listbox"
632
609
  aria-expanded="true"
633
610
  >
634
- 법무법인 대륜 그룹 바로가기
611
+ SJKP 그룹 바로가기
612
+ <Image
613
+ draggable={false}
614
+ src={process.env.NEXT_PUBLIC_S3_URL + '/comp-asset/section10/icon_arrow_gray.webp'}
615
+ alt={'select icon'}
616
+ width={28}
617
+ height={15}
618
+ className={'h-auto w-[15px] max-sm:w-[14px] '}
619
+ />
635
620
  </button>
636
621
 
637
622
  <ul
@@ -648,33 +633,46 @@ const FooterSelectBox = (props: {
648
633
  aria-expanded="true"
649
634
  aria-hidden="false"
650
635
  >
651
- {list.map(
652
- (center, index: number) =>
653
- center.parent_code === 'center' && (
636
+ <li className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
637
+ <Link
638
+ href={'https://www.sjkplaw.com'}
639
+ target="_blank"
640
+ title={'새창열기'}
641
+ onClick={() => {
642
+ setIsOpen(!isOpen);
643
+ }}
644
+ >
645
+ 뉴욕본사 SJKP
646
+ </Link>
647
+ </li>
648
+ {list
649
+ .filter(c => c.parent_code === 'center')
650
+ .map((group, index) => {
651
+ return (
654
652
  <React.Fragment key={index}>
655
653
  <li
656
- key={center.code}
657
- value={center.code_name}
654
+ key={group.code}
655
+ value={group.code_name}
658
656
  className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100"
659
657
  >
660
658
  <Link
661
- href={center.domain}
662
- key={index}
659
+ href={group.domain}
663
660
  target="_blank"
664
661
  title={'새창열기'}
665
662
  onClick={() => {
666
663
  setIsOpen(!isOpen);
667
664
  }}
668
665
  >
669
- {center.code === 'CT0000'
670
- ? '법무법인 대륜 변호사 대표사이트'
671
- : center.code_name + center.gubun}
666
+ {group.code === 'CT0000'
667
+ ? '법무법인 대륜 대표사이트'
668
+ : group.code_name + group.gubun}
672
669
  </Link>
673
670
  </li>
674
- {list.map((in_center, index2) => {
675
- return (
676
- in_center.parent_code === 'in_center' &&
677
- center.code === in_center.etc && (
671
+
672
+ {list
673
+ .filter(c => c.etc === group.code && c.parent_code === 'in_center')
674
+ .map((in_center, index2) => {
675
+ return (
678
676
  <React.Fragment key={in_center.code}>
679
677
  <li
680
678
  key={in_center.code}
@@ -712,22 +710,12 @@ const FooterSelectBox = (props: {
712
710
  <></>
713
711
  )}
714
712
  </React.Fragment>
715
- )
716
- );
717
- })}
713
+ );
714
+ })}
718
715
  </React.Fragment>
719
- )
720
- )}
716
+ );
717
+ })}
721
718
  </ul>
722
-
723
- <Image
724
- draggable={false}
725
- src={process.env.NEXT_PUBLIC_S3_URL + '/comp-asset/section10/icon_arrow_gray.webp'}
726
- alt={'select icon'}
727
- width={28}
728
- height={15}
729
- className={'absolute right-[10%] top-[50%] w-[15px] translate-y-[-50%] max-sm:w-[14px]'}
730
- />
731
719
  </div>
732
720
  </div>
733
721
  );
@@ -24,7 +24,6 @@ interface NoticeDetailProps {
24
24
  notice: NoticeDetailData;
25
25
  fileList: FileData[];
26
26
  onHitUpdate?: (idx: number) => void;
27
- queryStr?: string;
28
27
  }
29
- declare const NoticeDetail: ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr }: NoticeDetailProps) => React.JSX.Element;
28
+ declare const NoticeDetail: ({ notice, fileList, onHitUpdate }: NoticeDetailProps) => React.JSX.Element;
30
29
  export default NoticeDetail;
@@ -1,29 +1,18 @@
1
1
  'use client';
2
- import React, { useEffect, useRef, useState } from 'react';
3
- import { useRouter } from 'next/router';
2
+ import React, { useEffect, useRef } from 'react';
4
3
  import style from './detail.module.css';
5
4
  import classNames from 'classnames';
6
5
  import { PageWrapper, PdfPrintCopyLink } from '../../../index';
7
6
  import PostNavigation from '../../../postNavigation/PostNavigation';
8
7
  import TuiViewer from '../../../TuiViewer/TuiViewer';
9
- const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr }) => {
8
+ const NoticeDetail = ({ notice, fileList, onHitUpdate }) => {
10
9
  const imagePath = process.env.NEXT_PUBLIC_S3_URL || '';
11
- const router = useRouter();
12
- const [queryStr, setQueryStr] = useState(initialQueryStr || '');
13
10
  const printRef = useRef(null);
14
11
  useEffect(() => {
15
12
  if (notice && onHitUpdate) {
16
13
  onHitUpdate(notice.idx);
17
14
  }
18
15
  }, [notice, onHitUpdate]);
19
- useEffect(() => {
20
- if (router.query.page || router.query.search) {
21
- setQueryStr(`?page=${router.query.page}&search=${router.query.search}&nameFilter=${router.query.nameFilter}`);
22
- }
23
- else {
24
- setQueryStr('');
25
- }
26
- }, [router]);
27
16
  // 숫자 콤마 포맷팅 함수
28
17
  const numComma = (num) => {
29
18
  return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
@@ -59,7 +48,7 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
59
48
  }}/>) : (<TuiViewer initialValue={notice.contents.replace('../../UploadFile', '/SE2/upload')}/>)}
60
49
  </div>
61
50
  <div className={'my-10 mt-20 h-[2px] w-[100%] bg-[#ebebeb]'}></div>
62
- <PostNavigation url={'/notice'} postNav={notice} preTxt={'이전글'} nextTxt={'다음글'} listTxt={'목록보기'} queryStr={queryStr}/>
51
+ <PostNavigation url={'/notice'} postNav={notice} preTxt={'이전글'} nextTxt={'다음글'} listTxt={'목록보기'}/>
63
52
  </div>
64
53
  </PageWrapper>
65
54
  </>);
@@ -42,10 +42,6 @@ const meta = {
42
42
  onHitUpdate: {
43
43
  description: '조회수 업데이트 함수',
44
44
  action: 'hitUpdated'
45
- },
46
- queryStr: {
47
- description: '쿼리 문자열',
48
- control: { type: 'text' }
49
45
  }
50
46
  }
51
47
  };
@@ -85,7 +81,6 @@ export const Default = {
85
81
  args: {
86
82
  notice: mockNotice,
87
83
  fileList: [],
88
- onHitUpdate: (idx) => console.log('Hit updated for notice:', idx),
89
- queryStr: '?page=1&search=&nameFilter=전체'
84
+ onHitUpdate: (idx) => console.log('Hit updated for notice:', idx)
90
85
  }
91
86
  };
@@ -48,10 +48,6 @@ const meta: Meta<typeof NoticeDetail> = {
48
48
  onHitUpdate: {
49
49
  description: '조회수 업데이트 함수',
50
50
  action: 'hitUpdated'
51
- },
52
- queryStr: {
53
- description: '쿼리 문자열',
54
- control: { type: 'text' }
55
51
  }
56
52
  }
57
53
  };
@@ -98,7 +94,6 @@ export const Default: Story = {
98
94
  args: {
99
95
  notice: mockNotice,
100
96
  fileList: [],
101
- onHitUpdate: (idx: number) => console.log('Hit updated for notice:', idx),
102
- queryStr: '?page=1&search=&nameFilter=전체'
97
+ onHitUpdate: (idx: number) => console.log('Hit updated for notice:', idx)
103
98
  }
104
99
  };
@@ -37,13 +37,10 @@ interface NoticeDetailProps {
37
37
  notice: NoticeDetailData;
38
38
  fileList: FileData[];
39
39
  onHitUpdate?: (idx: number) => void;
40
- queryStr?: string;
41
40
  }
42
41
 
43
- const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr }: NoticeDetailProps) => {
42
+ const NoticeDetail = ({ notice, fileList, onHitUpdate }: NoticeDetailProps) => {
44
43
  const imagePath = process.env.NEXT_PUBLIC_S3_URL || '';
45
- const router = useRouter();
46
- const [queryStr, setQueryStr] = useState(initialQueryStr || '');
47
44
  const printRef = useRef<HTMLDivElement>(null);
48
45
 
49
46
  useEffect(() => {
@@ -52,16 +49,6 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
52
49
  }
53
50
  }, [notice, onHitUpdate]);
54
51
 
55
- useEffect(() => {
56
- if (router.query.page || router.query.search) {
57
- setQueryStr(
58
- `?page=${router.query.page}&search=${router.query.search}&nameFilter=${router.query.nameFilter}`
59
- );
60
- } else {
61
- setQueryStr('');
62
- }
63
- }, [router]);
64
-
65
52
  // 숫자 콤마 포맷팅 함수
66
53
  const numComma = (num: number) => {
67
54
  return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
@@ -122,7 +109,6 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
122
109
  preTxt={'이전글'}
123
110
  nextTxt={'다음글'}
124
111
  listTxt={'목록보기'}
125
- queryStr={queryStr}
126
112
  />
127
113
  </div>
128
114
  </PageWrapper>