@daeryun/dr_components 1.2.39 → 1.2.40

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.
Files changed (39) hide show
  1. package/dist/components/Footer/index.d.ts +1 -3
  2. package/dist/components/Footer/index.jsx +12 -25
  3. package/dist/components/Footer/index.tsx +9 -39
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +4 -16
  5. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +6 -26
  6. package/dist/components/categoryView/CategoryComponent.jsx +1 -6
  7. package/dist/components/categoryView/CategoryComponent.tsx +1 -9
  8. package/dist/components/common/hook/index.d.ts +1 -1
  9. package/dist/components/common/hook/index.js +1 -1
  10. package/dist/components/common/hook/index.ts +1 -1
  11. package/dist/components/page/Integrate/Broadcast.d.ts +0 -1
  12. package/dist/components/page/Integrate/Broadcast.jsx +2 -3
  13. package/dist/components/page/Integrate/Broadcast.tsx +2 -6
  14. package/dist/components/page/Integrate/Field.d.ts +0 -1
  15. package/dist/components/page/Integrate/Field.jsx +2 -5
  16. package/dist/components/page/Integrate/Field.tsx +2 -9
  17. package/dist/components/page/Integrate/LawInfo.d.ts +0 -1
  18. package/dist/components/page/Integrate/LawInfo.jsx +2 -5
  19. package/dist/components/page/Integrate/LawInfo.tsx +2 -8
  20. package/dist/components/page/Integrate/Reply.d.ts +0 -1
  21. package/dist/components/page/Integrate/Reply.jsx +6 -8
  22. package/dist/components/page/Integrate/Reply.tsx +8 -10
  23. package/dist/components/page/Integrate/SearchData.jsx +6 -8
  24. package/dist/components/page/Integrate/SearchData.tsx +0 -8
  25. package/dist/components/page/Integrate/Success.d.ts +0 -1
  26. package/dist/components/page/Integrate/Success.jsx +4 -7
  27. package/dist/components/page/Integrate/Success.tsx +5 -10
  28. package/dist/components/page/Integrate/Trend.d.ts +0 -1
  29. package/dist/components/page/Integrate/Trend.jsx +2 -5
  30. package/dist/components/page/Integrate/Trend.tsx +2 -7
  31. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +1 -6
  32. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +1 -9
  33. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +1 -6
  34. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +1 -9
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +1 -1
  37. package/dist/components/hook/useIsApp.d.ts +0 -2
  38. package/dist/components/hook/useIsApp.js +0 -22
  39. package/dist/components/hook/useIsApp.ts +0 -29
@@ -2,6 +2,4 @@ import React from 'react';
2
2
  import { INewFooterTypes } from './IFooterTypes';
3
3
  declare const NewFooter: ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }: INewFooterTypes) => React.JSX.Element;
4
4
  export default NewFooter;
5
- export declare const FooterLinkList: ({ isApp }: {
6
- isApp: boolean;
7
- }) => React.JSX.Element;
5
+ export declare const FooterLinkList: () => React.JSX.Element;
@@ -24,7 +24,6 @@ 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
- import useIsApp from '../hook/useIsApp';
28
27
  const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }) => {
29
28
  const pathname = usePathname();
30
29
  const mobile = require('is-mobile');
@@ -33,7 +32,6 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
33
32
  const [isOpen, setIsOpen] = useState(false);
34
33
  const wrapperRef = useRef(null);
35
34
  const routeLocation = pathname === '/';
36
- const isApp = useIsApp();
37
35
  const fetchData = () => __awaiter(void 0, void 0, void 0, function* () {
38
36
  try {
39
37
  const req = yield fetch(`/api/center-footer/list`);
@@ -189,21 +187,21 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
189
187
  {/* <FooterLinkList />*/}
190
188
  {/*</div>*/}
191
189
  {isBrochureBtn && !isMedical ? (<span className={'flex w-full flex-1 flex-col items-center justify-center gap-[20px] max-md:gap-[15px] max-2sm:gap-[10px]'}>
192
- <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink} isApp={isApp}/>
190
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink}/>
193
191
  <BrochureBtn width={'280px'} height={'60px'} wrapClassName={'max-xs:hidden'} className={'xl:hidden ' +
194
192
  //768px
195
193
  'max-md:mx-[-10px] max-md:scale-90 ' +
196
194
  //590px
197
195
  'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] '} type={brochureType}/>
198
196
  </span>) : isBrochureBtn && isMedical ? (<span className={'flex w-full flex-1 flex-col items-center justify-center gap-[20px] max-md:gap-[15px] max-2sm:gap-[10px]'}>
199
- <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink} isApp={isApp}/>
197
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink}/>
200
198
  <MedicalBrochureBtn width={'280px'} height={'60px'} wrapClassName={'max-lg:hidden'} className={'xl:hidden ' +
201
199
  //768px
202
200
  'max-md:mx-[-10px] max-md:scale-90 ' +
203
201
  //590px
204
202
  'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] '}/>
205
203
  </span>) : (<span className={'flex w-full flex-1 items-center justify-center gap-[40px] max-md:gap-[5px] max-2sm:gap-[10px]'}>
206
- <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink} isApp={isApp}/>
204
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn} isMedical={isMedical} centerLink={centerLink}/>
207
205
  <BrochureBtn width={'280px'} height={'60px'} className={'xl:hidden ' +
208
206
  //768px
209
207
  'max-md:mx-[-10px] max-md:scale-90 ' +
@@ -221,7 +219,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
221
219
  'max-xl:justify-center ' +
222
220
  'max-md:gap-[17px] max-md:text-[14px] ' +
223
221
  'max-xs:mb-[42px] max-xs:grid max-xs:grid-cols-2 max-xs:gap-2 max-xs:text-[16px] max-xs:leading-snug '}>
224
- <FooterLinkList isApp={isApp}/>
222
+ <FooterLinkList />
225
223
  </div>
226
224
  <div className={'mb-[15px] max-xl:justify-center max-md:text-[14px] max-xs:mb-[24px] max-xs:text-[16px] max-2xs:mb-[33px] xs:flex xs:w-full xs:items-center'}>
227
225
  <p className={'xs:pr-[11px] xs:text-center'}>
@@ -287,7 +285,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
287
285
  </footer>);
288
286
  };
289
287
  export default NewFooter;
290
- export const FooterLinkList = ({ isApp }) => {
288
+ export const FooterLinkList = () => {
291
289
  /**
292
290
  * 로그인 반영 후 푸터
293
291
  */
@@ -296,16 +294,14 @@ export const FooterLinkList = ({ isApp }) => {
296
294
  {data && data.length > 0
297
295
  ? data === null || data === void 0 ? void 0 : data.map((item, key) => {
298
296
  return (<p key={key}>
299
- <Link href={isApp
300
- ? `https://mysjkp.daeryunlaw.com/common/term/${item.terms_code}`
301
- : `https://www.daeryunlaw.com/common/term/${item.terms_code}`} target={'_blank'}>
297
+ <Link href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`} target={'_blank'}>
302
298
  {item.terms_name}
303
299
  </Link>
304
300
  </p>);
305
301
  })
306
302
  : null}
307
303
  <p className={'text-[#285FA7]'}>
308
- <Link href={isApp ? 'https://mysjkp.daeryunlaw.com/inquire' : 'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
304
+ <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
309
305
  고객만족센터
310
306
  </Link>
311
307
  </p>
@@ -344,7 +340,7 @@ export const FooterLinkList = ({ isApp }) => {
344
340
  // );
345
341
  };
346
342
  const FooterSelectBox = (props) => {
347
- const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData, isApp } = props;
343
+ const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
348
344
  const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
349
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 ') +
350
346
  ' xl:ml-auto'}>
@@ -368,10 +364,7 @@ const FooterSelectBox = (props) => {
368
364
  pointerEvents: isOpen ? 'auto' : 'none'
369
365
  }} role="listbox" aria-orientation="vertical" aria-labelledby="listbox-label" aria-expanded="true" aria-hidden="false">
370
366
  <li className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
371
- <Link href={{
372
- pathname: 'https://www.sjkplawfirm.com',
373
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
374
- }} target="_blank" title={'새창열기'} onClick={() => {
367
+ <Link href={'https://www.sjkplawfirm.com'} target="_blank" title={'새창열기'} onClick={() => {
375
368
  setIsOpen(!isOpen);
376
369
  }}>
377
370
  뉴욕본사 SJKP
@@ -382,10 +375,7 @@ const FooterSelectBox = (props) => {
382
375
  .map((group, index) => {
383
376
  return (<React.Fragment key={index}>
384
377
  <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">
385
- <Link href={{
386
- pathname: group.domain,
387
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
388
- }} target="_blank" title={'새창열기'} onClick={() => {
378
+ <Link href={group.domain} target="_blank" title={'새창열기'} onClick={() => {
389
379
  setIsOpen(!isOpen);
390
380
  }}>
391
381
  {group.code === 'CT0000'
@@ -399,10 +389,7 @@ const FooterSelectBox = (props) => {
399
389
  .map((in_center, index2) => {
400
390
  return (<React.Fragment key={in_center.code}>
401
391
  <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">
402
- <Link href={{
403
- pathname: in_center.domain,
404
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
405
- }} key={index2} target="_blank" title={'새창열기'}>
392
+ <Link href={in_center.domain} key={index2} target="_blank" title={'새창열기'}>
406
393
  <p className={'pl-3'}>
407
394
  {in_center.code_name}
408
395
  {in_center.gubun}
@@ -411,7 +398,7 @@ const FooterSelectBox = (props) => {
411
398
  </li>
412
399
  {/*경영권분쟁센터 밑에 기업인수 합병센터 강제 추가*/}
413
400
  {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">
414
- <Link href={'https://www.daeryunlaw-mergers.com?isApp=true'} target="_blank" title={'새창열기'}>
401
+ <Link href={'https://www.daeryunlaw-mergers.com/'} target="_blank" title={'새창열기'}>
415
402
  <p className={'pl-3'}>기업인수·합병(M&A)센터</p>
416
403
  </Link>
417
404
  </li>) : (<></>)}
@@ -18,7 +18,6 @@ import BrochureBtn from '../BrochureBtn/BrochureBtn';
18
18
  import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
19
19
  import { useActionGetTermList } from './_actions/action';
20
20
  import { ITermType } from '../page/Login/_types/termType';
21
- import useIsApp from '../hook/useIsApp';
22
21
 
23
22
  const NewFooter = ({
24
23
  groupsData,
@@ -40,8 +39,6 @@ const NewFooter = ({
40
39
 
41
40
  const routeLocation: boolean = pathname === '/';
42
41
 
43
- const isApp = useIsApp();
44
-
45
42
  const fetchData = async () => {
46
43
  try {
47
44
  const req = await fetch(`/api/center-footer/list`);
@@ -236,7 +233,6 @@ const NewFooter = ({
236
233
  isBrochureBtn={isBrochureBtn}
237
234
  isMedical={isMedical}
238
235
  centerLink={centerLink}
239
- isApp={isApp}
240
236
  />
241
237
  <BrochureBtn
242
238
  width={'280px'}
@@ -267,7 +263,6 @@ const NewFooter = ({
267
263
  isBrochureBtn={isBrochureBtn}
268
264
  isMedical={isMedical}
269
265
  centerLink={centerLink}
270
- isApp={isApp}
271
266
  />
272
267
  <MedicalBrochureBtn
273
268
  width={'280px'}
@@ -297,7 +292,6 @@ const NewFooter = ({
297
292
  isBrochureBtn={isBrochureBtn}
298
293
  isMedical={isMedical}
299
294
  centerLink={centerLink}
300
- isApp={isApp}
301
295
  />
302
296
  <BrochureBtn
303
297
  width={'280px'}
@@ -353,7 +347,7 @@ const NewFooter = ({
353
347
  'max-xs:mb-[42px] max-xs:grid max-xs:grid-cols-2 max-xs:gap-2 max-xs:text-[16px] max-xs:leading-snug '
354
348
  }
355
349
  >
356
- <FooterLinkList isApp={isApp} />
350
+ <FooterLinkList />
357
351
  </div>
358
352
  <div
359
353
  className={
@@ -511,7 +505,7 @@ const NewFooter = ({
511
505
 
512
506
  export default NewFooter;
513
507
 
514
- export const FooterLinkList = ({ isApp }: { isApp: boolean }) => {
508
+ export const FooterLinkList = () => {
515
509
  /**
516
510
  * 로그인 반영 후 푸터
517
511
  */
@@ -525,11 +519,7 @@ export const FooterLinkList = ({ isApp }: { isApp: boolean }) => {
525
519
  return (
526
520
  <p key={key}>
527
521
  <Link
528
- href={
529
- isApp
530
- ? `https://mysjkp.daeryunlaw.com/common/term/${item.terms_code}`
531
- : `https://www.daeryunlaw.com/common/term/${item.terms_code}`
532
- }
522
+ href={`https://www.daeryunlaw.com/common/term/${item.terms_code}`}
533
523
  target={'_blank'}
534
524
  >
535
525
  {item.terms_name}
@@ -539,10 +529,7 @@ export const FooterLinkList = ({ isApp }: { isApp: boolean }) => {
539
529
  })
540
530
  : null}
541
531
  <p className={'text-[#285FA7]'}>
542
- <Link
543
- href={isApp ? 'https://mysjkp.daeryunlaw.com/inquire' : 'https://www.daeryunlaw.com/inquire'}
544
- target={'_blank'}
545
- >
532
+ <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
546
533
  고객만족센터
547
534
  </Link>
548
535
  </p>
@@ -592,10 +579,8 @@ const FooterSelectBox = (props: {
592
579
  isOpen: boolean;
593
580
  routeLocation: boolean;
594
581
  groupsData: ICenterLinkTypes[] | null;
595
- isApp: boolean;
596
582
  }) => {
597
- const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData, isApp } =
598
- props;
583
+ const { isBrochureBtn, isMedical, wrapperRef, setIsOpen, isOpen, centerLink, routeLocation, groupsData } = props;
599
584
 
600
585
  const list = groupsData != null && groupsData.length > 0 ? groupsData : centerLink;
601
586
 
@@ -657,12 +642,7 @@ const FooterSelectBox = (props: {
657
642
  >
658
643
  <li className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
659
644
  <Link
660
- href={{
661
- pathname: 'https://www.sjkplawfirm.com',
662
- query: {
663
- ...(isApp ? { isApp: true } : {})
664
- }
665
- }}
645
+ href={'https://www.sjkplawfirm.com'}
666
646
  target="_blank"
667
647
  title={'새창열기'}
668
648
  onClick={() => {
@@ -683,12 +663,7 @@ const FooterSelectBox = (props: {
683
663
  className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100"
684
664
  >
685
665
  <Link
686
- href={{
687
- pathname: group.domain,
688
- query: {
689
- ...(isApp ? { isApp: true } : {})
690
- }
691
- }}
666
+ href={group.domain}
692
667
  target="_blank"
693
668
  title={'새창열기'}
694
669
  onClick={() => {
@@ -712,12 +687,7 @@ const FooterSelectBox = (props: {
712
687
  className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
713
688
  >
714
689
  <Link
715
- href={{
716
- pathname: in_center.domain,
717
- query: {
718
- ...(isApp ? { isApp: true } : {})
719
- }
720
- }}
690
+ href={in_center.domain}
721
691
  key={index2}
722
692
  target="_blank"
723
693
  title={'새창열기'}
@@ -736,7 +706,7 @@ const FooterSelectBox = (props: {
736
706
  className="cursor-pointer px-7 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
737
707
  >
738
708
  <Link
739
- href={'https://www.daeryunlaw-mergers.com?isApp=true'}
709
+ href={'https://www.daeryunlaw-mergers.com/'}
740
710
  target="_blank"
741
711
  title={'새창열기'}
742
712
  >
@@ -14,13 +14,11 @@ import LineSeoulMd from '../../asset/images/globalOffice/seoul_line_md.svg';
14
14
  import LineBusanMd from '../../asset/images/globalOffice/busan_line_md.svg';
15
15
  import ViewMoreArrow from '../../asset/images/globalOffice/view_more_arrow.svg';
16
16
  import IconArrow from '../../asset/images/globalOffice/global_arrow.svg';
17
- import useIsApp from '../hook/useIsApp';
18
17
  // 좌표계산용
19
18
  const MAP_W = 3873;
20
19
  const MAP_H = 1853;
21
20
  const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
22
21
  const { width } = useBrowser(true);
23
- const isApp = useIsApp();
24
22
  return (<section className={'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
25
23
  'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
26
24
  'max-4xl:aspect-[1935/1100] ' +
@@ -82,10 +80,7 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
82
80
  {/*지도 이미지*/}
83
81
  {width >= 768 && (<Image src={'https://d1tgonli21s4df.cloudfront.net/main_new/global_map.webp'} alt="법무법인 대륜 전 세계 사무소" width={MAP_W} height={MAP_H} draggable="false" loading={'lazy'} className={'h-full w-full max-md:absolute'}/>)}
84
82
  {/*워싱턴*/}
85
- <Link href={{
86
- pathname: 'https://www.sjkplawfirm.com/',
87
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
88
- }} target={'_blank'} style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }} className={'group absolute h-fit w-fit object-cover ' +
83
+ <Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }} className={'group absolute h-fit w-fit object-cover ' +
89
84
  '-translate-x-[100%] -translate-y-[42px] ' +
90
85
  'max-[1935px]:-translate-y-[2.17vw] max-4xl:-translate-y-[2.6vw] max-xl:-translate-y-[4.17vw] ' +
91
86
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-2 max-md:block max-md:translate-x-0 max-md:translate-y-0 ' +
@@ -119,10 +114,7 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
119
114
  </Link>
120
115
 
121
116
  {/*뉴욕*/}
122
- <Link href={{
123
- pathname: 'https://www.sjkplawfirm.com/',
124
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
125
- }} target={'_blank'} style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }} className={'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
117
+ <Link href={'https://www.sjkplawfirm.com/'} target={'_blank'} style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }} className={'group absolute flex h-fit w-fit flex-col items-end object-cover ' +
126
118
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-1 max-md:w-full max-md:items-start '}>
127
119
  <span className={'relative block h-fit w-fit '}>
128
120
  {width >= 1280 ? (<LineNewYork className={'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
@@ -157,9 +149,7 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
157
149
  'max-[1935px]:-translate-y-[7.23vw] ' +
158
150
  'max-4xl:-translate-y-[8vw] ' +
159
151
  'max-xl:-translate-y-[18.8vw] ' +
160
- 'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-3 max-md:w-full max-md:translate-y-0 max-md:items-start '} target={isCenter ? '_blank' : '_self'} href={isCenter
161
- ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/seoulbon?scroll=false`
162
- : '/map/seoulbon?scroll=false'}>
152
+ 'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-3 max-md:w-full max-md:translate-y-0 max-md:items-start '} target={isCenter ? '_blank' : '_self'} href={isCenter ? 'https://www.daeryunlaw.com/map/seoulbon?scroll=false' : '/map/seoulbon?scroll=false'}>
163
153
  <span className={'relative block h-fit w-fit '}>
164
154
  {width >= 1280 ? (<LineSeoul className={'h-auto w-[382px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
165
155
  'max-[1935px]:w-[19.74vw] ' +
@@ -192,9 +182,7 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
192
182
  <Link style={{ right: `${(593 / MAP_W) * 100}%`, top: `${(690 / MAP_H) * 100}%` }} className={'group absolute flex h-fit w-fit translate-x-[70%] cursor-pointer flex-col items-end object-cover ' +
193
183
  'max-4xl:translate-x-[75%] ' +
194
184
  'max-xl:translate-x-0 max-xl:items-start ' +
195
- 'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'} target={isCenter ? '_blank' : '_self'} href={isCenter
196
- ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/busan1?scroll=false`
197
- : '/map/busan1?scroll=false'}>
185
+ 'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'} target={isCenter ? '_blank' : '_self'} href={isCenter ? 'https://www.daeryunlaw.com/map/busan1?scroll=false' : '/map/busan1?scroll=false'}>
198
186
  <span className={'relative block h-fit w-fit '}>
199
187
  {width >= 1280 ? (<LineBusan className={'h-auto w-[160px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
200
188
  'max-[1935px]:w-[8.27vw] ' +
@@ -18,7 +18,6 @@ import LineBusanMd from '../../asset/images/globalOffice/busan_line_md.svg';
18
18
 
19
19
  import ViewMoreArrow from '../../asset/images/globalOffice/view_more_arrow.svg';
20
20
  import IconArrow from '../../asset/images/globalOffice/global_arrow.svg';
21
- import useIsApp from '../hook/useIsApp';
22
21
 
23
22
  // 좌표계산용
24
23
  const MAP_W = 3873;
@@ -34,7 +33,6 @@ const GlobalOfficeSection = ({
34
33
  customFont: string;
35
34
  }) => {
36
35
  const { width } = useBrowser(true);
37
- const isApp = useIsApp();
38
36
 
39
37
  return (
40
38
  <section
@@ -160,12 +158,7 @@ const GlobalOfficeSection = ({
160
158
  )}
161
159
  {/*워싱턴*/}
162
160
  <Link
163
- href={{
164
- pathname: 'https://www.sjkplawfirm.com/',
165
- query: {
166
- ...(isApp ? { isApp: true } : {})
167
- }
168
- }}
161
+ href={'https://www.sjkplawfirm.com/'}
169
162
  target={'_blank'}
170
163
  style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }}
171
164
  className={
@@ -241,12 +234,7 @@ const GlobalOfficeSection = ({
241
234
 
242
235
  {/*뉴욕*/}
243
236
  <Link
244
- href={{
245
- pathname: 'https://www.sjkplawfirm.com/',
246
- query: {
247
- ...(isApp ? { isApp: true } : {})
248
- }
249
- }}
237
+ href={'https://www.sjkplawfirm.com/'}
250
238
  target={'_blank'}
251
239
  style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }}
252
240
  className={
@@ -327,12 +315,8 @@ const GlobalOfficeSection = ({
327
315
  'max-xl:-translate-y-[18.8vw] ' +
328
316
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-3 max-md:w-full max-md:translate-y-0 max-md:items-start '
329
317
  }
330
- target={isCenter ? '_blank' : '_self'}
331
- href={
332
- isCenter
333
- ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/seoulbon?scroll=false`
334
- : '/map/seoulbon?scroll=false'
335
- }
318
+ target={isCenter ?'_blank' : '_self'}
319
+ href={ isCenter ? 'https://www.daeryunlaw.com/map/seoulbon?scroll=false' : '/map/seoulbon?scroll=false'}
336
320
  >
337
321
  <span className={'relative block h-fit w-fit '}>
338
322
  {width >= 1280 ? (
@@ -404,12 +388,8 @@ const GlobalOfficeSection = ({
404
388
  'max-xl:translate-x-0 max-xl:items-start ' +
405
389
  'max-md:relative max-md:!right-0 max-md:!top-0 max-md:order-4 max-md:w-full'
406
390
  }
407
- target={isCenter ? '_blank' : '_self'}
408
- href={
409
- isCenter
410
- ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/map/busan1?scroll=false`
411
- : '/map/busan1?scroll=false'
412
- }
391
+ target={isCenter ?'_blank' : '_self'}
392
+ href={ isCenter ? 'https://www.daeryunlaw.com/map/busan1?scroll=false' : '/map/busan1?scroll=false'}
413
393
  >
414
394
  <span className={'relative block h-fit w-fit '}>
415
395
  {width >= 1280 ? (
@@ -4,10 +4,8 @@ import Image from 'next/image';
4
4
  import React from 'react';
5
5
  import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
6
6
  import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
7
- import useIsApp from '../hook/useIsApp';
8
7
  const CategoryComponent = (props) => {
9
8
  const { showCategory, onClickPage, currentPage, maxPageNum, selectedCenter, currentCenterTitle, allMainCenterTargetBlank } = props;
10
- const isApp = useIsApp();
11
9
  const linkString = (id, pathname) => {
12
10
  let link = '';
13
11
  if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
@@ -34,10 +32,7 @@ const CategoryComponent = (props) => {
34
32
  'max-md2:auto-rows-[minmax(0,60px)] max-md2:grid-cols-1 ' +
35
33
  //520px
36
34
  'max-2sm:auto-rows-[minmax(0,50px)]'}>
37
- {showCategory.map((item, index) => (<Link href={{
38
- pathname: linkString(item.idx, item.pathname),
39
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
40
- }} key={index} className={'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
35
+ {showCategory.map((item, index) => (<Link href={linkString(item.idx, item.pathname)} key={index} className={'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
41
36
  //900px
42
37
  'max-md2:rounded-none max-md2:border-0' +
43
38
  //520px
@@ -7,7 +7,6 @@ import { ICategory, ICenter } from './ICategoryViewTypes';
7
7
  import Icon from '../../asset/images/categoryView/section9_icon.webp';
8
8
  import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
9
9
  import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
10
- import useIsApp from '../hook/useIsApp';
11
10
  const CategoryComponent = (props: {
12
11
  showCategory: ICategory[];
13
12
  onClickPage: (num: number) => void;
@@ -27,8 +26,6 @@ const CategoryComponent = (props: {
27
26
  allMainCenterTargetBlank
28
27
  } = props;
29
28
 
30
- const isApp = useIsApp();
31
-
32
29
  const linkString = (id: number, pathname: string) => {
33
30
  let link = '';
34
31
 
@@ -67,12 +64,7 @@ const CategoryComponent = (props: {
67
64
  >
68
65
  {showCategory.map((item, index) => (
69
66
  <Link
70
- href={{
71
- pathname: linkString(item.idx, item.pathname),
72
- query: {
73
- ...(isApp ? { isApp: true } : {})
74
- }
75
- }}
67
+ href={linkString(item.idx, item.pathname)}
76
68
  key={index}
77
69
  className={
78
70
  'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
@@ -1,4 +1,4 @@
1
1
  export * from './useBrowser';
2
- export * from './useIsApp';
3
2
  export * from './useCountNum';
4
3
  export * from './useElementObserve';
4
+ export * from './useIsApp';
@@ -1,4 +1,4 @@
1
1
  export * from './useBrowser';
2
- export * from './useIsApp';
3
2
  export * from './useCountNum';
4
3
  export * from './useElementObserve';
4
+ export * from './useIsApp';
@@ -1,4 +1,4 @@
1
1
  export * from './useBrowser';
2
- export * from './useIsApp';
3
2
  export * from './useCountNum';
4
3
  export * from './useElementObserve';
4
+ export * from './useIsApp';
@@ -18,6 +18,5 @@ declare const Broadcast: (props: {
18
18
  trend: number;
19
19
  };
20
20
  loading: boolean;
21
- isApp: boolean;
22
21
  }) => React.JSX.Element;
23
22
  export default Broadcast;
@@ -8,7 +8,7 @@ import { ViewMore } from './ViewMore';
8
8
  import { searchColorText } from '../../common/integrate';
9
9
  import { htmlTagRemove } from '../../../lib';
10
10
  const Broadcast = (props) => {
11
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
11
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
12
12
  const [allTabPage, setAllTabPage] = useState(0);
13
13
  const [allTabList, setAllTabList] = useState([]);
14
14
  const getAllPage = () => {
@@ -45,8 +45,7 @@ const Broadcast = (props) => {
45
45
  return (<div key={'broadcast' + item.id} className={'w-full lg:flex lg:flex-row lg:flex-wrap lg:justify-between'}>
46
46
  {/*mobile*/}
47
47
  <Link href={{
48
- pathname: '/broadcast/' + item.id,
49
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
48
+ pathname: '/broadcast/' + item.id
50
49
  }} className={'mx-auto flex flex-col items-center justify-center lg:hidden' +
51
50
  (tab === '전체' && index === 3
52
51
  ? ''
@@ -28,9 +28,8 @@ const Broadcast = (props: {
28
28
  trend: number;
29
29
  };
30
30
  loading: boolean;
31
- isApp: boolean;
32
31
  }) => {
33
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
32
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
34
33
 
35
34
  const [allTabPage, setAllTabPage] = useState<number>(0);
36
35
  const [allTabList, setAllTabList] = useState<IBroadCastTypes[]>([]);
@@ -96,10 +95,7 @@ const Broadcast = (props: {
96
95
  {/*mobile*/}
97
96
  <Link
98
97
  href={{
99
- pathname: '/broadcast/' + item.id,
100
- query: {
101
- ...(isApp ? { isApp: true } : {})
102
- }
98
+ pathname: '/broadcast/' + item.id
103
99
  }}
104
100
  className={
105
101
  'mx-auto flex flex-col items-center justify-center lg:hidden' +
@@ -19,6 +19,5 @@ declare const Field: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
- isApp: boolean;
23
22
  }) => React.JSX.Element;
24
23
  export default Field;
@@ -5,7 +5,7 @@ import { ViewMore } from './ViewMore';
5
5
  import { Title } from './Title';
6
6
  import { searchColorText } from '../../common/integrate';
7
7
  const Field = (props) => {
8
- const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading, isApp } = props;
8
+ const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading } = props;
9
9
  const [allTabPage, setAllTabPage] = useState(0);
10
10
  const [allTabList, setAllTabList] = useState([]);
11
11
  const getAllPage = () => {
@@ -34,10 +34,7 @@ const Field = (props) => {
34
34
  <Title title={'업무분야'} tab={tab} type={'field'} onClick={str => onMoreViewText(str)} count={listCount.field}/>
35
35
  <div className={'my-4 grid gap-[16px] sm:m-2 sm:grid-cols-2 lg:grid-cols-3'}>
36
36
  {(tab === '전체' ? allTabList : list.fieldList).map((item, index) => {
37
- return (<Link href={{
38
- pathname: `${item.pathname}field_new/[idx]`,
39
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
40
- }} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={`${item.pathname}field_new/[${item.idx}] `}>
37
+ return (<Link href={`${item.pathname}field_new/[idx]`} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={`${item.pathname}field_new/[${item.idx}] `}>
41
38
  <p className={'text-[20px] text-[#555555] max-xl:text-[18px] max-sm:text-[16px] max-xs:text-[15px]'}>
42
39
  <span className={'mr-2 text-[#99999]'}>•</span>
43
40
  &nbsp; 업무분야
@@ -5,7 +5,6 @@ import { IFieldTypes, IListPagesType, IListTypes } from './integrateType';
5
5
  import { ViewMore } from './ViewMore';
6
6
  import { Title } from './Title';
7
7
  import { searchColorText } from '../../common/integrate';
8
- import useIsApp from '../../hook/useIsApp';
9
8
 
10
9
  const Field = (props: {
11
10
  isMobileSize: boolean | null;
@@ -26,9 +25,8 @@ const Field = (props: {
26
25
  trend: number;
27
26
  };
28
27
  loading: boolean;
29
- isApp: boolean;
30
28
  }) => {
31
- const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading, isApp } = props;
29
+ const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading } = props;
32
30
 
33
31
  const [allTabPage, setAllTabPage] = useState<number>(0);
34
32
  const [allTabList, setAllTabList] = useState<IFieldTypes[]>([]);
@@ -79,12 +77,7 @@ const Field = (props: {
79
77
  {(tab === '전체' ? allTabList : list.fieldList).map((item, index) => {
80
78
  return (
81
79
  <Link
82
- href={{
83
- pathname: `${item.pathname}field_new/[idx]`,
84
- query: {
85
- ...(isApp ? { isApp: true } : {})
86
- }
87
- }}
80
+ href={`${item.pathname}field_new/[idx]`}
88
81
  target={item.center_code === props.center_code ? '' : '_blank'}
89
82
  as={`${item.pathname}field_new/${item.idx}`}
90
83
  key={`${item.pathname}field_new/[${item.idx}] `}
@@ -19,6 +19,5 @@ declare const LawInfo: (props: {
19
19
  };
20
20
  search: string;
21
21
  loading: boolean;
22
- isApp: boolean;
23
22
  }) => React.JSX.Element;
24
23
  export default LawInfo;