@daeryun/dr_components 0.4.48 → 0.4.50
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.
- package/dist/components/categoryView/CategoryView.jsx +1 -1
- package/dist/components/categoryView/CategoryView.tsx +3 -1
- package/dist/components/page/Integrate/Broadcast.jsx +2 -5
- package/dist/components/page/Integrate/Broadcast.tsx +0 -6
- package/dist/components/page/Integrate/Field.jsx +2 -6
- package/dist/components/page/Integrate/Field.tsx +0 -7
- package/dist/components/page/Integrate/LawInfo.jsx +2 -5
- package/dist/components/page/Integrate/LawInfo.tsx +0 -7
- package/dist/components/page/Integrate/Lawyer.jsx +5 -8
- package/dist/components/page/Integrate/Lawyer.tsx +1 -11
- package/dist/components/page/Integrate/Map.jsx +2 -5
- package/dist/components/page/Integrate/Map.tsx +0 -7
- package/dist/components/page/Integrate/Reply.jsx +2 -6
- package/dist/components/page/Integrate/Reply.tsx +0 -8
- package/dist/components/page/Integrate/Success.jsx +2 -6
- package/dist/components/page/Integrate/Success.tsx +0 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ const CategoryView = (props) => {
|
|
|
30
30
|
const response = yield axios.get('/api/center/list?type=category');
|
|
31
31
|
// const centerArr = response.data.list;
|
|
32
32
|
//회계감리, 메인 페이지, 상담전담 삭제
|
|
33
|
-
const centerArr = response.data.list.filter((i) => i.code !== 'CT0000' && i.code !== 'CT0023');
|
|
33
|
+
const centerArr = response.data.list.filter((i) => i.code !== 'CT0000' && i.code !== 'CT0023' && i.code !== 'CT0028');
|
|
34
34
|
const selectedCenter = centerArr.find((i) => i.code_desc === props.currentCenterTitle);
|
|
35
35
|
if (selectedCenter) {
|
|
36
36
|
selectedCenter.isSelect = true;
|
|
@@ -36,7 +36,9 @@ const CategoryView = (props: {
|
|
|
36
36
|
const response = await axios.get('/api/center/list?type=category');
|
|
37
37
|
// const centerArr = response.data.list;
|
|
38
38
|
//회계감리, 메인 페이지, 상담전담 삭제
|
|
39
|
-
const centerArr = response.data.list.filter(
|
|
39
|
+
const centerArr = response.data.list.filter(
|
|
40
|
+
(i: ICenter) => i.code !== 'CT0000' && i.code !== 'CT0023' && i.code !== 'CT0028'
|
|
41
|
+
);
|
|
40
42
|
const selectedCenter = centerArr.find((i: ICenter) => i.code_desc === props.currentCenterTitle);
|
|
41
43
|
if (selectedCenter) {
|
|
42
44
|
selectedCenter.isSelect = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { NoResult } from './NoResult';
|
|
@@ -10,7 +10,6 @@ import { htmlTagRemove } from '../../../lib';
|
|
|
10
10
|
const Broadcast = (props) => {
|
|
11
11
|
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount } = props;
|
|
12
12
|
const [loading, setLoading] = useState(false);
|
|
13
|
-
const firstAddRef = useRef(null);
|
|
14
13
|
return (<>
|
|
15
14
|
{tab === '전체' || tab === 'broadcast' ? (tab === 'broadcast' && listCount.broadcast < 1 ? (<NoResult />) : (<>
|
|
16
15
|
{listCount.broadcast > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
|
|
@@ -50,9 +49,7 @@ const Broadcast = (props) => {
|
|
|
50
49
|
{/*웹환경*/}
|
|
51
50
|
<Link href={{
|
|
52
51
|
pathname: '/broadcast/' + item.id
|
|
53
|
-
}} className={'h-[250px] w-full items-center justify-center max-lg:hidden lg:flex lg:flex-col '} key={item.id}
|
|
54
|
-
? firstAddRef
|
|
55
|
-
: null}>
|
|
52
|
+
}} className={'h-[250px] w-full items-center justify-center max-lg:hidden lg:flex lg:flex-col '} key={item.id}>
|
|
56
53
|
<div className={'my-4 flex w-full flex-row items-center justify-start gap-4'}>
|
|
57
54
|
<div className={'text-[14px] font-medium text-[#285EA7] lg:text-[19px]'}>
|
|
58
55
|
{item.broadcast}
|
|
@@ -30,7 +30,6 @@ const Broadcast = (props: {
|
|
|
30
30
|
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount } = props;
|
|
31
31
|
|
|
32
32
|
const [loading, setLoading] = useState<boolean>(false);
|
|
33
|
-
const firstAddRef = useRef<HTMLAnchorElement>(null);
|
|
34
33
|
|
|
35
34
|
return (
|
|
36
35
|
<>
|
|
@@ -129,11 +128,6 @@ const Broadcast = (props: {
|
|
|
129
128
|
'h-[250px] w-full items-center justify-center max-lg:hidden lg:flex lg:flex-col '
|
|
130
129
|
}
|
|
131
130
|
key={item.id}
|
|
132
|
-
ref={
|
|
133
|
-
index === list.broadcastList.length - 12
|
|
134
|
-
? firstAddRef
|
|
135
|
-
: null
|
|
136
|
-
}
|
|
137
131
|
>
|
|
138
132
|
<div
|
|
139
133
|
className={
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import { NoResult } from './NoResult';
|
|
4
4
|
import uuid from 'react-uuid';
|
|
@@ -8,7 +8,6 @@ import { searchColorText } from '../../common/integrate';
|
|
|
8
8
|
const Field = (props) => {
|
|
9
9
|
const { tab, onMoreViewText, list, pages, search, onMoreView, listCount } = props;
|
|
10
10
|
const [loading, setLoading] = useState(false);
|
|
11
|
-
const firstAddRef = useRef(null);
|
|
12
11
|
return (<>
|
|
13
12
|
{tab === '전체' || tab === 'field' ? (tab === 'field' && listCount.field < 1 ? (<NoResult />) : (<>
|
|
14
13
|
{listCount.field > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
|
|
@@ -16,10 +15,7 @@ const Field = (props) => {
|
|
|
16
15
|
|
|
17
16
|
<div className={'my-4 grid gap-[16px] sm:m-2 sm:grid-cols-2 lg:grid-cols-3'}>
|
|
18
17
|
{(tab === '전체' ? list.fieldList.slice(0, 6) : list.fieldList).map((item, index) => {
|
|
19
|
-
return (<Link href={`${item.pathname}field_new/[idx]`} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={uuid()}
|
|
20
|
-
(index > 48 && index === list.fieldList.length - 48)
|
|
21
|
-
? firstAddRef
|
|
22
|
-
: null}>
|
|
18
|
+
return (<Link href={`${item.pathname}field_new/[idx]`} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={uuid()}>
|
|
23
19
|
<p className={'text-[20px] text-[#555555] max-xl:text-[18px] max-sm:text-[16px] max-xs:text-[15px]'}>
|
|
24
20
|
<span className={'mr-2 text-[#99999]'}>•</span>
|
|
25
21
|
업무분야
|
|
@@ -29,7 +29,6 @@ const Field = (props: {
|
|
|
29
29
|
const { tab, onMoreViewText, list, pages, search, onMoreView, listCount } = props;
|
|
30
30
|
|
|
31
31
|
const [loading, setLoading] = useState<boolean>(false);
|
|
32
|
-
const firstAddRef = useRef<HTMLAnchorElement>(null);
|
|
33
32
|
|
|
34
33
|
return (
|
|
35
34
|
<>
|
|
@@ -57,12 +56,6 @@ const Field = (props: {
|
|
|
57
56
|
target={item.center_code === props.center_code ? '' : '_blank'}
|
|
58
57
|
as={`${item.pathname}field_new/${item.idx}`}
|
|
59
58
|
key={uuid()}
|
|
60
|
-
ref={
|
|
61
|
-
index === 0 ||
|
|
62
|
-
(index > 48 && index === list.fieldList.length - 48)
|
|
63
|
-
? firstAddRef
|
|
64
|
-
: null
|
|
65
|
-
}
|
|
66
59
|
>
|
|
67
60
|
<p
|
|
68
61
|
className={
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { NoResult } from './NoResult';
|
|
@@ -8,7 +8,6 @@ import { searchColorText } from '../../common/integrate';
|
|
|
8
8
|
const LawInfo = (props) => {
|
|
9
9
|
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount } = props;
|
|
10
10
|
const [loading, setLoading] = useState(false);
|
|
11
|
-
const firstAddRef = useRef(null);
|
|
12
11
|
return (<>
|
|
13
12
|
{tab === '전체' || tab === 'info' ? (tab === 'info' && listCount.info < 1 ? (<NoResult />) : (<>
|
|
14
13
|
{listCount.info > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
|
|
@@ -16,9 +15,7 @@ const LawInfo = (props) => {
|
|
|
16
15
|
|
|
17
16
|
<div className={'grid w-full gap-[40px] sm:grid-cols-2 sm:gap-[30px] lg:grid-cols-4 lg:gap-[16px]'}>
|
|
18
17
|
{(tab === '전체' ? list.infoList.slice(0, 4) : list.infoList).map((item, index) => {
|
|
19
|
-
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'}
|
|
20
|
-
? firstAddRef
|
|
21
|
-
: null}>
|
|
18
|
+
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'}>
|
|
22
19
|
<div className={'relative aspect-[1.47] w-full overflow-hidden max-sm:h-full max-sm:w-full'}>
|
|
23
20
|
<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 '}/>
|
|
24
21
|
</div>
|
|
@@ -28,8 +28,6 @@ const LawInfo = (props: {
|
|
|
28
28
|
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount } = props;
|
|
29
29
|
const [loading, setLoading] = useState<boolean>(false);
|
|
30
30
|
|
|
31
|
-
const firstAddRef = useRef<HTMLAnchorElement>(null);
|
|
32
|
-
|
|
33
31
|
return (
|
|
34
32
|
<>
|
|
35
33
|
{tab === '전체' || tab === 'info' ? (
|
|
@@ -59,11 +57,6 @@ const LawInfo = (props: {
|
|
|
59
57
|
href={item.pathname + 'lawinfo_new/' + item.idx}
|
|
60
58
|
target={item.center_code === props.center_code ? '' : '_blank'}
|
|
61
59
|
className={'mb-3 flex flex-col gap-3 overflow-hidden'}
|
|
62
|
-
ref={
|
|
63
|
-
index === 0 || (index > 12 && index === list.infoList.length - 12)
|
|
64
|
-
? firstAddRef
|
|
65
|
-
: null
|
|
66
|
-
}
|
|
67
60
|
>
|
|
68
61
|
<div
|
|
69
62
|
className={
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect,
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { NoResult } from './NoResult';
|
|
3
3
|
import { Title } from './Title';
|
|
4
4
|
import { ViewMore } from './ViewMore';
|
|
@@ -14,7 +14,6 @@ const Lawyer = (props) => {
|
|
|
14
14
|
const [loading, setLoading] = useState(false);
|
|
15
15
|
const [isMobile, setIsMobile] = useState(false);
|
|
16
16
|
const lawyerImagePath = 'https://d1tgonli21s4df.cloudfront.net/upload/lawyer';
|
|
17
|
-
const firstAddRef = useRef(null);
|
|
18
17
|
useEffect(() => {
|
|
19
18
|
const is_mobile = mobile();
|
|
20
19
|
setIsMobile(is_mobile);
|
|
@@ -28,9 +27,7 @@ const Lawyer = (props) => {
|
|
|
28
27
|
|
|
29
28
|
<div className={'mx-auto my-16 grid w-full grid-cols-2 gap-y-5 max-md:gap-y-2 md:grid-cols-3 xl:grid-cols-4'}>
|
|
30
29
|
{(tab === '전체' ? list.lawyerList.slice(0, 8) : list.lawyerList).map((item, index) => {
|
|
31
|
-
return (<LawyerContainer key={item.id} center_code={props.center_code} item={item} lawyerImagePath={lawyerImagePath}
|
|
32
|
-
? firstAddRef
|
|
33
|
-
: null}/>);
|
|
30
|
+
return (<LawyerContainer key={item.id} center_code={props.center_code} item={item} lawyerImagePath={lawyerImagePath}/>);
|
|
34
31
|
})}
|
|
35
32
|
</div>
|
|
36
33
|
{tab != '전체' && (<ViewMore flag={list.lawyerList.length != listCount.lawyer} func={() => {
|
|
@@ -44,7 +41,7 @@ const Lawyer = (props) => {
|
|
|
44
41
|
export default Lawyer;
|
|
45
42
|
const LawyerContainer = (props) => {
|
|
46
43
|
var _a;
|
|
47
|
-
const { item, lawyerImagePath, selectedFilter = '', onClickTel, isPro = false
|
|
44
|
+
const { item, lawyerImagePath, selectedFilter = '', onClickTel, isPro = false } = props;
|
|
48
45
|
const router = useRouter();
|
|
49
46
|
const MailClick = () => {
|
|
50
47
|
gtag.event({
|
|
@@ -77,7 +74,7 @@ const LawyerContainer = (props) => {
|
|
|
77
74
|
<Link href={{
|
|
78
75
|
pathname: '/lawyer/' + item.id,
|
|
79
76
|
query: Object.assign({}, router.query)
|
|
80
|
-
}}
|
|
77
|
+
}}>
|
|
81
78
|
<span>
|
|
82
79
|
<div className={'flex items-center justify-between'}>
|
|
83
80
|
<p className={'my-2 text-[20px] font-[700] tracking-[-1.6px] sm:text-[25px] lg:text-[32px]'}>
|
|
@@ -139,7 +136,7 @@ const LawyerContainer = (props) => {
|
|
|
139
136
|
else {
|
|
140
137
|
return (<Link href={{
|
|
141
138
|
pathname: '/lawyer/' + item.id
|
|
142
|
-
}}
|
|
139
|
+
}} key={item.id} className={'flex justify-center'} aria-label={`${item.name} ${item.code}`}>
|
|
143
140
|
<div className={'w-[90%] sm:w-[80%]'}>
|
|
144
141
|
<div className={'relative flex items-center justify-center bg-[#F8F8F8]'}>
|
|
145
142
|
<Image src={lawyerImagePath + '/' + (item.image ? item.image : item.thumbnail)} alt={item.name} title={item.name} width={210} height={280} className={'mt-6 h-auto w-[90%]'}/>
|
|
@@ -35,8 +35,6 @@ const Lawyer = (props: {
|
|
|
35
35
|
const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
36
36
|
const lawyerImagePath: string = 'https://d1tgonli21s4df.cloudfront.net/upload/lawyer';
|
|
37
37
|
|
|
38
|
-
const firstAddRef = useRef<HTMLAnchorElement>(null);
|
|
39
|
-
|
|
40
38
|
useEffect(() => {
|
|
41
39
|
const is_mobile = mobile();
|
|
42
40
|
setIsMobile(is_mobile);
|
|
@@ -72,11 +70,6 @@ const Lawyer = (props: {
|
|
|
72
70
|
center_code={props.center_code}
|
|
73
71
|
item={item}
|
|
74
72
|
lawyerImagePath={lawyerImagePath}
|
|
75
|
-
firstAddRef={
|
|
76
|
-
index === 0 || (index > 12 && index === list.lawyerList.length - 12)
|
|
77
|
-
? firstAddRef
|
|
78
|
-
: null
|
|
79
|
-
}
|
|
80
73
|
/>
|
|
81
74
|
);
|
|
82
75
|
}
|
|
@@ -117,9 +110,8 @@ const LawyerContainer = (props: {
|
|
|
117
110
|
selectedFilter?: string; // 이미지 alt 용
|
|
118
111
|
onClickTel?: () => void; // 전화번호 클릭 이벤트
|
|
119
112
|
isPro?: boolean; // true 일 시 특수분야 전문가
|
|
120
|
-
firstAddRef?: RefObject<HTMLAnchorElement> | null; //통합검색용 접근성
|
|
121
113
|
}) => {
|
|
122
|
-
const { item, lawyerImagePath, selectedFilter = '', onClickTel, isPro = false
|
|
114
|
+
const { item, lawyerImagePath, selectedFilter = '', onClickTel, isPro = false } = props;
|
|
123
115
|
const router = useRouter();
|
|
124
116
|
|
|
125
117
|
const MailClick = () => {
|
|
@@ -183,7 +175,6 @@ const LawyerContainer = (props: {
|
|
|
183
175
|
...router.query
|
|
184
176
|
}
|
|
185
177
|
}}
|
|
186
|
-
ref={firstAddRef}
|
|
187
178
|
>
|
|
188
179
|
<span>
|
|
189
180
|
<div className={'flex items-center justify-between'}>
|
|
@@ -312,7 +303,6 @@ const LawyerContainer = (props: {
|
|
|
312
303
|
href={{
|
|
313
304
|
pathname: '/lawyer/' + item.id
|
|
314
305
|
}}
|
|
315
|
-
ref={firstAddRef}
|
|
316
306
|
key={item.id}
|
|
317
307
|
className={'flex justify-center'}
|
|
318
308
|
aria-label={`${item.name} ${item.code}`}
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import React, {
|
|
10
|
+
import React, { useState } from 'react';
|
|
11
11
|
import Image from 'next/image';
|
|
12
12
|
import { NoResult } from './NoResult';
|
|
13
13
|
import { Title } from './Title';
|
|
@@ -18,7 +18,6 @@ const Map = (props) => {
|
|
|
18
18
|
const router = useRouter();
|
|
19
19
|
const { tab, onMoreViewText, list, pages } = props;
|
|
20
20
|
const [loading, setLoading] = useState(false);
|
|
21
|
-
const firstAddRef = useRef(null);
|
|
22
21
|
return props.tab === '전체' || props.tab === 'map' ? (
|
|
23
22
|
//구성원 탭에서는 결과 없음
|
|
24
23
|
tab === 'map' && props.listCount.map < 1 ? (<NoResult />) : (<>
|
|
@@ -67,9 +66,7 @@ const Map = (props) => {
|
|
|
67
66
|
//640px
|
|
68
67
|
'max-sm:relative max-sm:mx-auto max-sm:mt-[30px] max-sm:w-[85%] max-sm:translate-y-0'} onClick={() => {
|
|
69
68
|
void router.push('/map/' + item.key);
|
|
70
|
-
}} aria-label={item.title + ' 자세히 보기'}
|
|
71
|
-
? firstAddRef
|
|
72
|
-
: null}>
|
|
69
|
+
}} aria-label={item.title + ' 자세히 보기'}>
|
|
73
70
|
<span className={'text-[18px] font-[600] leading-none tracking-[-1px] ' +
|
|
74
71
|
//1024px
|
|
75
72
|
'max-lg:text-[16px] '}>
|
|
@@ -30,8 +30,6 @@ const Map = (props: {
|
|
|
30
30
|
|
|
31
31
|
const [loading, setLoading] = useState<boolean>(false);
|
|
32
32
|
|
|
33
|
-
const firstAddRef = useRef<HTMLButtonElement>(null);
|
|
34
|
-
|
|
35
33
|
return props.tab === '전체' || props.tab === 'map' ? (
|
|
36
34
|
//구성원 탭에서는 결과 없음
|
|
37
35
|
tab === 'map' && props.listCount.map < 1 ? (
|
|
@@ -114,11 +112,6 @@ const Map = (props: {
|
|
|
114
112
|
void router.push('/map/' + item.key);
|
|
115
113
|
}}
|
|
116
114
|
aria-label={item.title + ' 자세히 보기'}
|
|
117
|
-
ref={
|
|
118
|
-
index === 0 || (index > 12 && index === list.mapList.length - 12)
|
|
119
|
-
? firstAddRef
|
|
120
|
-
: null
|
|
121
|
-
}
|
|
122
115
|
>
|
|
123
116
|
<span
|
|
124
117
|
className={
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import { NoResult } from './NoResult';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
@@ -8,7 +8,6 @@ import { searchColorText } from '../../common/integrate';
|
|
|
8
8
|
const Reply = (props) => {
|
|
9
9
|
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount } = props;
|
|
10
10
|
const [loading, setLoading] = useState(false);
|
|
11
|
-
const firstAddRef = useRef(null);
|
|
12
11
|
return (<>
|
|
13
12
|
{tab === '전체' || tab === 'reply' ? (tab === 'reply' && listCount.reply < 1 ? (<NoResult />) : (<>
|
|
14
13
|
{listCount.reply > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
|
|
@@ -21,10 +20,7 @@ const Reply = (props) => {
|
|
|
21
20
|
? 'https://www.daeryunlaw.com'
|
|
22
21
|
: '') +
|
|
23
22
|
'/reply/' +
|
|
24
|
-
item.id} target={item.crime_code === props.crime_code ? '' : '_blank'}
|
|
25
|
-
(index > 12 && index === list.replyList.length - 12)
|
|
26
|
-
? firstAddRef
|
|
27
|
-
: null}>
|
|
23
|
+
item.id} target={item.crime_code === props.crime_code ? '' : '_blank'}>
|
|
28
24
|
<div className={'flex flex-col'}>
|
|
29
25
|
<p className={'h-[70px] text-[20px] font-[800] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
|
|
30
26
|
<span className={'text-[#285FA7]'}>{item.etc4} </span>
|
|
@@ -31,8 +31,6 @@ const Reply = (props: {
|
|
|
31
31
|
|
|
32
32
|
const [loading, setLoading] = useState<boolean>(false);
|
|
33
33
|
|
|
34
|
-
const firstAddRef = useRef<HTMLAnchorElement>(null);
|
|
35
|
-
|
|
36
34
|
return (
|
|
37
35
|
<>
|
|
38
36
|
{tab === '전체' || tab === 'reply' ? (
|
|
@@ -69,12 +67,6 @@ const Reply = (props: {
|
|
|
69
67
|
item.id
|
|
70
68
|
}
|
|
71
69
|
target={item.crime_code === props.crime_code ? '' : '_blank'}
|
|
72
|
-
ref={
|
|
73
|
-
index === 0 ||
|
|
74
|
-
(index > 12 && index === list.replyList.length - 12)
|
|
75
|
-
? firstAddRef
|
|
76
|
-
: null
|
|
77
|
-
}
|
|
78
70
|
>
|
|
79
71
|
<div className={'flex flex-col'}>
|
|
80
72
|
<p
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import { NoResult } from './NoResult';
|
|
4
4
|
import { Title } from './Title';
|
|
@@ -8,7 +8,6 @@ const Success = (props) => {
|
|
|
8
8
|
var _a;
|
|
9
9
|
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount } = props;
|
|
10
10
|
const [loading, setLoading] = useState(false);
|
|
11
|
-
const firstAddRef = useRef(null);
|
|
12
11
|
return (<>
|
|
13
12
|
{tab === '전체' || tab === 'success' ? (tab === 'success' && listCount.success < 1 ? (<NoResult />) : (<>
|
|
14
13
|
{listCount.success > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
|
|
@@ -19,10 +18,7 @@ const Success = (props) => {
|
|
|
19
18
|
var _a, _b;
|
|
20
19
|
return (<Link href={!item.center_code.includes('OF')
|
|
21
20
|
? item.pathname + 'success_new/' + item.id
|
|
22
|
-
: `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}
|
|
23
|
-
(index > 12 && index === list.successList.length - 12)
|
|
24
|
-
? firstAddRef
|
|
25
|
-
: null}>
|
|
21
|
+
: `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}>
|
|
26
22
|
<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]`}>
|
|
27
23
|
<span className={'line-clamp-1'}>{item.sub}</span>
|
|
28
24
|
</p>
|
|
@@ -30,8 +30,6 @@ const Success = (props: {
|
|
|
30
30
|
|
|
31
31
|
const [loading, setLoading] = useState<boolean>(false);
|
|
32
32
|
|
|
33
|
-
const firstAddRef = useRef<HTMLAnchorElement>(null);
|
|
34
|
-
|
|
35
33
|
return (
|
|
36
34
|
<>
|
|
37
35
|
{tab === '전체' || tab === 'success' ? (
|
|
@@ -65,12 +63,6 @@ const Success = (props: {
|
|
|
65
63
|
' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'
|
|
66
64
|
}
|
|
67
65
|
key={item.id + item.center_code}
|
|
68
|
-
ref={
|
|
69
|
-
index === 0 ||
|
|
70
|
-
(index > 12 && index === list.successList.length - 12)
|
|
71
|
-
? firstAddRef
|
|
72
|
-
: null
|
|
73
|
-
}
|
|
74
66
|
>
|
|
75
67
|
<p
|
|
76
68
|
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]`}
|