@daeryun/dr_components 1.2.39 → 1.2.41

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 (38) hide show
  1. package/dist/components/Footer/index.jsx +1 -1
  2. package/dist/components/Footer/index.tsx +1 -1
  3. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +3 -9
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +3 -13
  5. package/dist/components/categoryView/CategoryComponent.jsx +1 -1
  6. package/dist/components/categoryView/CategoryComponent.tsx +2 -1
  7. package/dist/components/common/hook/index.d.ts +1 -1
  8. package/dist/components/common/hook/index.js +1 -1
  9. package/dist/components/common/hook/index.ts +1 -1
  10. package/dist/components/page/Integrate/Broadcast.d.ts +0 -1
  11. package/dist/components/page/Integrate/Broadcast.jsx +2 -3
  12. package/dist/components/page/Integrate/Broadcast.tsx +2 -6
  13. package/dist/components/page/Integrate/Field.d.ts +0 -1
  14. package/dist/components/page/Integrate/Field.jsx +2 -5
  15. package/dist/components/page/Integrate/Field.tsx +2 -9
  16. package/dist/components/page/Integrate/LawInfo.d.ts +0 -1
  17. package/dist/components/page/Integrate/LawInfo.jsx +2 -5
  18. package/dist/components/page/Integrate/LawInfo.tsx +2 -8
  19. package/dist/components/page/Integrate/Reply.d.ts +0 -1
  20. package/dist/components/page/Integrate/Reply.jsx +6 -8
  21. package/dist/components/page/Integrate/Reply.tsx +8 -10
  22. package/dist/components/page/Integrate/SearchData.jsx +6 -8
  23. package/dist/components/page/Integrate/SearchData.tsx +0 -8
  24. package/dist/components/page/Integrate/Success.d.ts +0 -1
  25. package/dist/components/page/Integrate/Success.jsx +4 -7
  26. package/dist/components/page/Integrate/Success.tsx +5 -10
  27. package/dist/components/page/Integrate/Trend.d.ts +0 -1
  28. package/dist/components/page/Integrate/Trend.jsx +2 -5
  29. package/dist/components/page/Integrate/Trend.tsx +2 -7
  30. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +1 -6
  31. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +1 -9
  32. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +1 -6
  33. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +1 -9
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +1 -1
  36. package/dist/components/hook/useIsApp.d.ts +0 -2
  37. package/dist/components/hook/useIsApp.js +0 -22
  38. package/dist/components/hook/useIsApp.ts +0 -29
@@ -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
- import useIsApp from '../hook/useIsApp';
27
+ import useIsApp from '../common/hook/useIsApp';
28
28
  const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical, brochureType }) => {
29
29
  const pathname = usePathname();
30
30
  const mobile = require('is-mobile');
@@ -18,7 +18,7 @@ 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';
21
+ import useIsApp from '../common/hook/useIsApp';
22
22
 
23
23
  const NewFooter = ({
24
24
  groupsData,
@@ -14,7 +14,7 @@ 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';
17
+ import useIsApp from '../../components/common/hook/useIsApp';
18
18
  // 좌표계산용
19
19
  const MAP_W = 3873;
20
20
  const MAP_H = 1853;
@@ -82,10 +82,7 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
82
82
  {/*지도 이미지*/}
83
83
  {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
84
  {/*워싱턴*/}
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 ' +
85
+ <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
86
  '-translate-x-[100%] -translate-y-[42px] ' +
90
87
  'max-[1935px]:-translate-y-[2.17vw] max-4xl:-translate-y-[2.6vw] max-xl:-translate-y-[4.17vw] ' +
91
88
  '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 +116,7 @@ const GlobalOfficeSection = ({ initialData, isCenter, customFont }) => {
119
116
  </Link>
120
117
 
121
118
  {/*뉴욕*/}
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 ' +
119
+ <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
120
  'max-md:relative max-md:!left-0 max-md:!top-0 max-md:order-1 max-md:w-full max-md:items-start '}>
127
121
  <span className={'relative block h-fit w-fit '}>
128
122
  {width >= 1280 ? (<LineNewYork className={'h-auto w-[269px] stroke-[#04325A] transition-colors duration-500 group-hover:stroke-[#285FA7] ' +
@@ -18,7 +18,7 @@ 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';
21
+ import useIsApp from '../../components/common/hook/useIsApp';
22
22
 
23
23
  // 좌표계산용
24
24
  const MAP_W = 3873;
@@ -160,12 +160,7 @@ const GlobalOfficeSection = ({
160
160
  )}
161
161
  {/*워싱턴*/}
162
162
  <Link
163
- href={{
164
- pathname: 'https://www.sjkplawfirm.com/',
165
- query: {
166
- ...(isApp ? { isApp: true } : {})
167
- }
168
- }}
163
+ href={'https://www.sjkplawfirm.com/'}
169
164
  target={'_blank'}
170
165
  style={{ left: `${(930 / MAP_W) * 100}%`, top: `${(730 / MAP_H) * 100}%` }}
171
166
  className={
@@ -241,12 +236,7 @@ const GlobalOfficeSection = ({
241
236
 
242
237
  {/*뉴욕*/}
243
238
  <Link
244
- href={{
245
- pathname: 'https://www.sjkplawfirm.com/',
246
- query: {
247
- ...(isApp ? { isApp: true } : {})
248
- }
249
- }}
239
+ href={'https://www.sjkplawfirm.com/'}
250
240
  target={'_blank'}
251
241
  style={{ left: `${(980 / MAP_W) * 100}%`, top: `${(670 / MAP_H) * 100}%` }}
252
242
  className={
@@ -4,7 +4,7 @@ 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';
7
+ import useIsApp from '../common/hook/useIsApp';
8
8
  const CategoryComponent = (props) => {
9
9
  const { showCategory, onClickPage, currentPage, maxPageNum, selectedCenter, currentCenterTitle, allMainCenterTargetBlank } = props;
10
10
  const isApp = useIsApp();
@@ -7,7 +7,8 @@ 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';
10
+ import useIsApp from '../common/hook/useIsApp';
11
+
11
12
  const CategoryComponent = (props: {
12
13
  showCategory: ICategory[];
13
14
  onClickPage: (num: number) => void;
@@ -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;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const LawInfo = (props) => {
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -40,10 +40,7 @@ const LawInfo = (props) => {
40
40
  <Title title={'법률정보'} tab={tab} type={'info'} onClick={str => onMoreViewText(str)} count={listCount.info}/>
41
41
  <div className={'grid w-full gap-[40px] sm:grid-cols-2 sm:gap-[30px] lg:grid-cols-4 lg:gap-[16px]'}>
42
42
  {(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
43
- return (<Link href={{
44
- pathname: item.pathname + 'lawinfo_new/' + item.idx,
45
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
46
- }} key={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
43
+ return (<Link key={item.pathname + 'lawinfo_new/' + item.idx} href={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
47
44
  <div className={'relative aspect-[1.47] w-full overflow-hidden max-sm:h-full max-sm:w-full'}>
48
45
  <Image src={'https://d1tgonli21s4df.cloudfront.net' + item.img} alt={item.alt} fill sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" className={'h-full w-full object-contain '}/>
49
46
  </div>
@@ -26,9 +26,8 @@ const LawInfo = (props: {
26
26
  };
27
27
  search: string;
28
28
  loading: boolean;
29
- isApp: boolean;
30
29
  }) => {
31
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
30
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
32
31
  const [allTabPage, setAllTabPage] = useState<number>(0);
33
32
  const [allTabList, setAllTabList] = useState<IInfoTypes[]>([]);
34
33
 
@@ -87,13 +86,8 @@ const LawInfo = (props: {
87
86
  {(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
88
87
  return (
89
88
  <Link
90
- href={{
91
- pathname: item.pathname + 'lawinfo_new/' + item.idx,
92
- query: {
93
- ...(isApp ? { isApp: true } : {})
94
- }
95
- }}
96
89
  key={item.pathname + 'lawinfo_new/' + item.idx}
90
+ href={item.pathname + 'lawinfo_new/' + item.idx}
97
91
  target={item.center_code === props.center_code ? '' : '_blank'}
98
92
  className={'mb-3 flex flex-col gap-3 overflow-hidden'}
99
93
  >
@@ -19,6 +19,5 @@ declare const Reply: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
- isApp: boolean;
23
22
  }) => React.JSX.Element;
24
23
  export default Reply;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const Reply = (props) => {
9
- const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading, isApp } = props;
9
+ const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -40,13 +40,11 @@ const Reply = (props) => {
40
40
  <Title title={'고객후기'} tab={tab} type={'reply'} onClick={str => onMoreViewText(str)} count={listCount.reply}/>
41
41
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
43
- return (<Link href={{
44
- pathname: (item.crime_code != props.crime_code
45
- ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com`
46
- : '') +
47
- '/reply/' +
48
- item.id
49
- }} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
43
+ return (<Link href={(item.crime_code != props.crime_code
44
+ ? 'https://www.daeryunlaw.com'
45
+ : '') +
46
+ '/reply/' +
47
+ item.id} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
50
48
  <p className={'h-[70px] text-[20px] font-[800] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
51
49
  <span className={'text-[#285FA7]'}>{item.etc4} </span>
52
50
  <br className={'block sm:hidden'}/>
@@ -27,9 +27,8 @@ const Reply = (props: {
27
27
  trend: number;
28
28
  };
29
29
  loading: boolean;
30
- isApp: boolean;
31
30
  }) => {
32
- const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading, isApp } = props;
31
+ const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
33
32
 
34
33
  const [allTabPage, setAllTabPage] = useState<number>(0);
35
34
  const [allTabList, setAllTabList] = useState<IReplyTypes[]>([]);
@@ -85,14 +84,13 @@ const Reply = (props: {
85
84
  {(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
86
85
  return (
87
86
  <Link
88
- href={{
89
- pathname:
90
- (item.crime_code != props.crime_code
91
- ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com`
92
- : '') +
93
- '/reply/' +
94
- item.id
95
- }}
87
+ href={
88
+ (item.crime_code != props.crime_code
89
+ ? 'https://www.daeryunlaw.com'
90
+ : '') +
91
+ '/reply/' +
92
+ item.id
93
+ }
96
94
  target={item.crime_code === props.crime_code ? '' : '_blank'}
97
95
  key={'reply' + item.id}
98
96
  className={
@@ -20,11 +20,9 @@ import Reply from './Reply';
20
20
  import Lawyer from './Lawyer';
21
21
  import useBrowser from '../../hook/useBrowser';
22
22
  import Trend from './Trend';
23
- import useIsApp from '../../hook/useIsApp';
24
23
  const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime_code }) => {
25
24
  const { width } = useBrowser(true);
26
25
  const router = useRouter();
27
- const isApp = useIsApp();
28
26
  const [tab, setTab] = useState('');
29
27
  const [search, setSearch] = useState('');
30
28
  const [list, setList] = useState(searchInit.list);
@@ -83,14 +81,14 @@ const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime
83
81
  }, [width, isMobileSize]);
84
82
  return (<span id={'integrate-result'}>
85
83
  {tab === '전체' && totalCount < 1 ? (<NoResult />) : (<>
86
- <Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field} isApp={isApp}/>
87
- <Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount} isApp={isApp}/>
88
- <LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info} isApp={isApp}/>
84
+ <Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field}/>
85
+ <Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount}/>
86
+ <LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info}/>
89
87
  <Lawyer isMobileSize={isMobileSize} tab={tab} listCount={listCount} list={list} pages={pages} center_code={center_code} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('lawyerList', 'lawyer')} loading={loading.lawyer}/>
90
- <Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount} isApp={isApp}/>
91
- <Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast} isApp={isApp}/>
88
+ <Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount}/>
89
+ <Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast}/>
92
90
 
93
- <Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend} isApp={isApp}/>
91
+ <Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend}/>
94
92
 
95
93
  {/*<Map*/}
96
94
  {/* isMobileSize={isMobileSize}*/}
@@ -13,7 +13,6 @@ import Map from './Map';
13
13
  import Lawyer from './Lawyer';
14
14
  import useBrowser from '../../hook/useBrowser';
15
15
  import Trend from './Trend';
16
- import useIsApp from '../../hook/useIsApp';
17
16
 
18
17
  const SearchData = ({
19
18
  list: propsList,
@@ -38,7 +37,6 @@ const SearchData = ({
38
37
  }) => {
39
38
  const { width } = useBrowser(true);
40
39
  const router = useRouter();
41
- const isApp = useIsApp();
42
40
  const [tab, setTab] = useState<string>('');
43
41
  const [search, setSearch] = useState<string>('');
44
42
  const [list, setList] = useState<IListTypes>(searchInit.list);
@@ -124,7 +122,6 @@ const SearchData = ({
124
122
  onMoreView={() => loadMore('fieldList', 'field')}
125
123
  search={search}
126
124
  loading={loading.field}
127
- isApp={isApp}
128
125
  />
129
126
  <Success
130
127
  isMobileSize={isMobileSize}
@@ -137,7 +134,6 @@ const SearchData = ({
137
134
  search={search}
138
135
  loading={loading.success}
139
136
  listCount={listCount}
140
- isApp={isApp}
141
137
  />
142
138
  <LawInfo
143
139
  isMobileSize={isMobileSize}
@@ -150,7 +146,6 @@ const SearchData = ({
150
146
  onMoreView={() => loadMore('infoList', 'info')}
151
147
  search={search}
152
148
  loading={loading.info}
153
- isApp={isApp}
154
149
  />
155
150
  <Lawyer
156
151
  isMobileSize={isMobileSize}
@@ -174,7 +169,6 @@ const SearchData = ({
174
169
  search={search}
175
170
  loading={loading.reply}
176
171
  listCount={listCount}
177
- isApp={isApp}
178
172
  />
179
173
  <Broadcast
180
174
  isMobileSize={isMobileSize}
@@ -186,7 +180,6 @@ const SearchData = ({
186
180
  onMoreView={() => loadMore('broadcastList', 'broadcast')}
187
181
  search={search}
188
182
  loading={loading.broadcast}
189
- isApp={isApp}
190
183
  />
191
184
 
192
185
  <Trend
@@ -199,7 +192,6 @@ const SearchData = ({
199
192
  onMoreView={() => loadMore('trendList', 'trend')}
200
193
  search={search}
201
194
  loading={loading.trend}
202
- isApp={isApp}
203
195
  />
204
196
 
205
197
  {/*<Map*/}
@@ -19,6 +19,5 @@ declare const Success: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
- isApp: boolean;
23
22
  }) => React.JSX.Element;
24
23
  export default Success;
@@ -6,7 +6,7 @@ import { ViewMore } from './ViewMore';
6
6
  import { searchColorText } from '../../common/integrate';
7
7
  const Success = (props) => {
8
8
  var _a;
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading, isApp } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -41,12 +41,9 @@ const Success = (props) => {
41
41
  {((_a = list.successList) === null || _a === void 0 ? void 0 : _a.length) !== 0 && (<div className={'mb-9 mt-9 grid gap-[30px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.successList).map((item, index) => {
43
43
  var _a, _b;
44
- return (<Link href={{
45
- pathname: !item.center_code.includes('OF')
46
- ? item.pathname + 'success_new/' + item.id
47
- : `https://${item.office_pathname}/success_new/${item.id}`,
48
- query: Object.assign({}, (isApp ? { isApp: true } : {}))
49
- }} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
44
+ return (<Link href={!item.center_code.includes('OF')
45
+ ? item.pathname + 'success_new/' + item.id
46
+ : `https://${item.office_pathname}/success_new/${item.id}`} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
50
47
  <p className={`ml-8 inline-block w-auto max-w-[70%] bg-[#2960A7] p-2 px-7 text-center text-[18px] font-[800] text-[#fff] max-lg:text-[16px] max-sm:text-[15px] max-2xs:text-[14px]`}>
51
48
  <span className={'line-clamp-1'}>{item.sub}</span>
52
49
  </p>
@@ -6,7 +6,6 @@ import { IListPagesType, IListTypes, ISuccessTypes } from './integrateType';
6
6
  import { Title } from './Title';
7
7
  import { ViewMore } from './ViewMore';
8
8
  import { searchColorText } from '../../common/integrate';
9
- import useIsApp from '../../hook/useIsApp';
10
9
 
11
10
  const Success = (props: {
12
11
  isMobileSize: boolean | null;
@@ -27,9 +26,8 @@ const Success = (props: {
27
26
  trend: number;
28
27
  };
29
28
  loading: boolean;
30
- isApp: boolean;
31
29
  }) => {
32
- const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading, isApp } = props;
30
+ const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
33
31
 
34
32
  const [allTabPage, setAllTabPage] = useState<number>(0);
35
33
  const [allTabList, setAllTabList] = useState<ISuccessTypes[]>([]);
@@ -86,14 +84,11 @@ const Success = (props: {
86
84
  {(tab === '전체' ? allTabList : list.successList).map((item, index) => {
87
85
  return (
88
86
  <Link
89
- href={{
90
- pathname: !item.center_code.includes('OF')
87
+ href={
88
+ !item.center_code.includes('OF')
91
89
  ? item.pathname + 'success_new/' + item.id
92
- : `https://${item.office_pathname}/success_new/${item.id}`,
93
- query: {
94
- ...(isApp ? { isApp: true } : {})
95
- }
96
- }}
90
+ : `https://${item.office_pathname}/success_new/${item.id}`
91
+ }
97
92
  target={item.center_code === props.center_code ? '' : '_blank'}
98
93
  className={
99
94
  ' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'
@@ -18,6 +18,5 @@ declare const Trend: (props: {
18
18
  trend: number;
19
19
  };
20
20
  loading: boolean;
21
- isApp: boolean;
22
21
  }) => React.JSX.Element;
23
22
  export default Trend;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const Trend = (props) => {
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -41,10 +41,7 @@ const Trend = (props) => {
41
41
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.trendList).map((item, index) => {
43
43
  const title = item.title.split('|');
44
- return (<Link target={'_blank'} href={{
45
- pathname: `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
46
- item.idx
47
- }} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
44
+ return (<Link target={'_blank'} href={'https://www.daeryunlaw.com/trend/' + item.idx} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
48
45
  <p className={'line-clamp-2 h-[70px] text-[20px] font-[800] text-[#285FA7] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
49
46
  {title.length > 1 ? (<>
50
47
  {title[0]}
@@ -25,9 +25,8 @@ const Trend = (props: {
25
25
  trend: number;
26
26
  };
27
27
  loading: boolean;
28
- isApp: boolean;
29
28
  }) => {
30
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
29
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
31
30
 
32
31
  const [allTabPage, setAllTabPage] = useState<number>(0);
33
32
  const [allTabList, setAllTabList] = useState<ITrendTypes[]>([]);
@@ -86,11 +85,7 @@ const Trend = (props: {
86
85
  return (
87
86
  <Link
88
87
  target={'_blank'}
89
- href={{
90
- pathname:
91
- `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
92
- item.idx
93
- }}
88
+ href={'https://www.daeryunlaw.com/trend/' + item.idx}
94
89
  key={'trend' + item.idx}
95
90
  className={
96
91
  'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '