@daeryun/dr_components 1.1.60 → 1.1.62
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/page/MyCase/[id]/_component/ContactInfo.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +3 -9
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +14 -35
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +7 -19
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +1 -2
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +21 -63
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +17 -97
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +1 -2
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +13 -58
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +25 -124
- package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.jsx +7 -12
- package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +7 -12
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +4 -3
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +34 -51
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +59 -88
- package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.jsx +2 -2
- package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.tsx +2 -2
- package/dist/components/page/MyCase/_actions/action.d.ts +0 -34
- package/dist/components/page/MyCase/_actions/action.js +0 -59
- package/dist/components/page/MyCase/_actions/action.ts +0 -79
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +4 -2
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +5 -2
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +1 -2
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +6 -14
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +6 -34
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +3 -8
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +4 -3
- package/dist/components/page/MyCase/_type/type.d.ts +1 -3
- package/dist/components/page/MyCase/_type/type.ts +1 -3
- package/dist/styles/globals.css +94 -501
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.d.ts +0 -4
- package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.jsx +0 -13
- package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.tsx +0 -18
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.d.ts +0 -5
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.jsx +0 -27
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.tsx +0 -46
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.jsx +0 -34
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.tsx +0 -65
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.d.ts +0 -5
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.jsx +0 -27
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.tsx +0 -47
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.jsx +0 -93
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.tsx +0 -139
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.d.ts +0 -10
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.jsx +0 -149
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.tsx +0 -212
- package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.jsx +0 -154
- package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.tsx +0 -177
- package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.d.ts +0 -14
- package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.jsx +0 -278
- package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.tsx +0 -411
- package/dist/components/page/MyCase/_component/_fileView/HwpViewer.d.ts +0 -8
- package/dist/components/page/MyCase/_component/_fileView/HwpViewer.jsx +0 -56
- package/dist/components/page/MyCase/_component/_fileView/HwpViewer.tsx +0 -111
- package/dist/components/page/MyCase/_component/_fileView/TopOverlay.d.ts +0 -3
- package/dist/components/page/MyCase/_component/_fileView/TopOverlay.jsx +0 -10
- package/dist/components/page/MyCase/_component/_fileView/TopOverlay.tsx +0 -10
- package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.js +0 -34
- package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.ts +0 -36
- package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.js +0 -33
- package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.ts +0 -25
- package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.js +0 -33
- package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.ts +0 -25
- package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.d.ts +0 -4
- package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.js +0 -33
- package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.ts +0 -25
|
@@ -24,7 +24,7 @@ const ContactInfo = ({ id }) => {
|
|
|
24
24
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
25
25
|
const [isOpen, setIsOpen] = useState(false);
|
|
26
26
|
const { data: list, isLoading, isFetched } = useActionGetContact(id);
|
|
27
|
-
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[
|
|
27
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] pb-[40px] 2sm:px-[40px] sm-top:mt-[24px] sm-top:px-[50px] sm-top:pb-[60px] sm-top:pt-[56px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
28
28
|
{isLoading ? (<Loading />) : (<>
|
|
29
29
|
{!(list === null || list === void 0 ? void 0 : list.result) && isFetched ? (<div className="mt-[60px] flex flex-col items-center justify-center sm-top:mb-[150px] sm-top:mt-[110px] lg:mt-[126px]">
|
|
30
30
|
<Image src={contractIcon} alt="contact_empty" width={100} height={100} className="h-[43.63px] w-[36px] sm-top:h-[50.9px] sm-top:w-[42px] lg:h-[63.01px] lg:w-[52px]"/>
|
|
@@ -37,7 +37,7 @@ const ContactInfo = ({ id }: { id: string }) => {
|
|
|
37
37
|
return (
|
|
38
38
|
<CaseLayout
|
|
39
39
|
isMobilePadding={false}
|
|
40
|
-
outerClassName="mt-[
|
|
40
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
41
41
|
innerClassName={
|
|
42
42
|
'pt-[32px] px-[20px] pb-[40px] 2sm:px-[40px] sm-top:mt-[24px] sm-top:px-[50px] sm-top:pb-[60px] sm-top:pt-[56px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
43
43
|
}
|
|
@@ -18,7 +18,7 @@ const Line = ({ title, content, isFirst = false }) => {
|
|
|
18
18
|
};
|
|
19
19
|
const DetailInfo = ({ detailList, isLoading }) => {
|
|
20
20
|
var _a, _b, _c;
|
|
21
|
-
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[
|
|
21
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'px-[20px] 2sm:px-[40px] pt-[30px] pb-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[50px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
22
22
|
{isLoading ? (<Loading />) : (<>
|
|
23
23
|
<Line title="사건번호" content={detailList === null || detailList === void 0 ? void 0 : detailList.case_number} isFirst/>
|
|
24
24
|
<Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
|
|
@@ -36,7 +36,7 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
|
|
|
36
36
|
return (
|
|
37
37
|
<CaseLayout
|
|
38
38
|
isMobilePadding={false}
|
|
39
|
-
outerClassName="mt-[
|
|
39
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
40
40
|
innerClassName={
|
|
41
41
|
'px-[20px] 2sm:px-[40px] pt-[30px] pb-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[50px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
42
42
|
}
|
|
@@ -49,14 +49,8 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
|
|
|
49
49
|
<Line title="법원명" content={detailList?.agency_name} />
|
|
50
50
|
<Line title="사건명" content={detailList?.title} />
|
|
51
51
|
<Line title="진행단계" content={detailList?.state} />
|
|
52
|
-
<Line
|
|
53
|
-
|
|
54
|
-
content={detailList?.accept_date ? dateFomat(detailList?.accept_date, 'YYYY-MM-DD') : '-'}
|
|
55
|
-
/>
|
|
56
|
-
<Line
|
|
57
|
-
title="사건 종료일"
|
|
58
|
-
content={detailList?.end_date ? dateFomat(detailList?.end_date, 'YYYY-MM-DD') : '-'}
|
|
59
|
-
/>
|
|
52
|
+
<Line title="사건 시작일" content={detailList?.accept_date ? dateFomat(detailList?.accept_date, 'YYYY-MM-DD') :'-'} />
|
|
53
|
+
<Line title="사건 종료일" content={detailList?.end_date ? dateFomat(detailList?.end_date, 'YYYY-MM-DD'):'-'} />
|
|
60
54
|
{/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
|
|
61
55
|
{/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
|
|
62
56
|
{/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
|
|
@@ -5,7 +5,7 @@ import SubMenuButton from '../../_component/_button/SubMenuButton';
|
|
|
5
5
|
import HeaderLayout from '../../_component/_layout/HeaderLayout';
|
|
6
6
|
import DetailInfo from './../_component/DetailInfo';
|
|
7
7
|
import { useParams, useRouter, useSearchParams } from 'next/navigation';
|
|
8
|
-
import { useActionGetCourtFileList, useActionGetDetailList,
|
|
8
|
+
import { useActionGetCourtFileList, useActionGetDetailList, useActionGetMyCaseQuestion, useActionGetMyFileList, useActionGetTimeLine } from '../../_actions/action';
|
|
9
9
|
import background from '../../../../../asset/images/myCase/background.webp';
|
|
10
10
|
import backgroundTb from '../../../../../asset/images/myCase/background_tb.webp';
|
|
11
11
|
import backgroundMo from '../../../../../asset/images/myCase/background_mo.webp';
|
|
@@ -28,7 +28,6 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
28
28
|
const { data: timeLine, isLoading: timeLineLoading } = useActionGetTimeLine(id, jwt);
|
|
29
29
|
const { data: courtFileList, isLoading: courtFileListLoading } = useActionGetCourtFileList(id, jwt);
|
|
30
30
|
const { data: myFileList, isLoading: myFileListLoading, refetch: myFileListRefetch } = useActionGetMyFileList(id, jwt);
|
|
31
|
-
const { data: daeryunFileList, isLoading: daeryunFileListLoading, refetch: daeryunFileListRefetch } = useActionGetDaeryunFileList(id, jwt, !!id);
|
|
32
31
|
const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = useActionGetMyCaseQuestion(id, pageNumber, pageSize, jwt);
|
|
33
32
|
const handleOnChange = (pageNum) => {
|
|
34
33
|
router.push(`/mycase/${id}?page=${pageNum}`);
|
|
@@ -42,43 +41,23 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
42
41
|
return <></>;
|
|
43
42
|
}
|
|
44
43
|
return (<Suspense>
|
|
45
|
-
<div className=" relative mt-[
|
|
44
|
+
<div className=" relative mt-[126px] min-h-[700px] md:mt-[78px] md2:mt-[88px]">
|
|
46
45
|
<IntroWrapper title={'상세 사건 정보'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundTbImage={backgroundTb} backgroundMoImage={backgroundMo} outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"/>
|
|
47
46
|
|
|
48
47
|
<div className={'relative z-[1] '}>
|
|
49
48
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
50
49
|
<HeaderLayout>
|
|
51
|
-
<div className="
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/>
|
|
63
|
-
<SubMenuButton
|
|
64
|
-
title="문서함"
|
|
65
|
-
isSelected={selected === '문서함'}
|
|
66
|
-
onClick={() => setSelected('문서함')}
|
|
67
|
-
/>
|
|
68
|
-
<SubMenuButton
|
|
69
|
-
title="계약정보"
|
|
70
|
-
isSelected={selected === '계약정보'}
|
|
71
|
-
onClick={() => setSelected('계약정보')}
|
|
72
|
-
/>
|
|
73
|
-
<SubMenuButton
|
|
74
|
-
title="사건문의"
|
|
75
|
-
isSelected={selected === '사건문의'}
|
|
76
|
-
onClick={() => setSelected('사건문의')}
|
|
77
|
-
/>
|
|
78
|
-
</div> */}
|
|
79
|
-
<div className=" mx-auto bg-white sm-top:gap-[20px] sm-top:rounded-[30px] lg:max-w-[1340px] lg:gap-[28px] 3xl:max-w-[1240px] 6xl:max-w-[1520px] ">
|
|
80
|
-
<CaseTabSwiper id="case-tab-swiper3" scrollClassName="" containerClassName="!py-[5px] sm-top:!py-[6px] lg:py-[6px]">
|
|
81
|
-
<SubMenuButton title="사건 기본정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px] 2sm:ml-[40px] sm-top:ml-[6px] lg:ml-[6px] swiper-slide"/>
|
|
50
|
+
<div className="mt-[210px] sm-top:mt-[283px] lg:mt-[302px] ">
|
|
51
|
+
<div className="flex items-center justify-center gap-[16px] max-[500px]:hidden sm-top:gap-[32px] lg:gap-[28px]">
|
|
52
|
+
<SubMenuButton title="사건 기본정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')}/>
|
|
53
|
+
<SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
|
|
54
|
+
<SubMenuButton title="문서함" isSelected={selected === '문서함'} onClick={() => setSelected('문서함')}/>
|
|
55
|
+
<SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
|
|
56
|
+
<SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')}/>
|
|
57
|
+
</div>
|
|
58
|
+
<div className="hidden max-[500px]:block 2sm:pl-[40px]">
|
|
59
|
+
<CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[500px]:!block">
|
|
60
|
+
<SubMenuButton title="사건 기본정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px] swiper-slide"/>
|
|
82
61
|
<SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')} outerClassName=" swiper-slide"/>
|
|
83
62
|
<SubMenuButton title="문서함" isSelected={selected === '문서함'} onClick={() => setSelected('문서함')} outerClassName=" swiper-slide"/>
|
|
84
63
|
<SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')} outerClassName=" swiper-slide"/>
|
|
@@ -88,7 +67,7 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
88
67
|
</div>
|
|
89
68
|
{selected === '사건 정보' && (<DetailInfo detailList={detailList === null || detailList === void 0 ? void 0 : detailList.data} isLoading={detailListLoading}/>)}
|
|
90
69
|
{selected === '사건 타임라인' && (<TimeLine timeLine={timeLine === null || timeLine === void 0 ? void 0 : timeLine.list} isLoading={timeLineLoading}/>)}
|
|
91
|
-
{selected === '문서함' && (<Document courtFileList={courtFileList === null || courtFileList === void 0 ? void 0 : courtFileList.data} myFileList={myFileList === null || myFileList === void 0 ? void 0 : myFileList.data}
|
|
70
|
+
{selected === '문서함' && (<Document courtFileList={courtFileList === null || courtFileList === void 0 ? void 0 : courtFileList.data} myFileList={myFileList === null || myFileList === void 0 ? void 0 : myFileList.data} id={id} refetch={myFileListRefetch}/>)}
|
|
92
71
|
{selected === '계약정보' && <ContactInfo id={id}/>}
|
|
93
72
|
{selected === '사건문의' && (<CaseInquiry myCaseQuestion={myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.list} isLoading={myCaseQuestionLoading} id={id} refetch={myCaseQuestionRefetch} pageSize={pageSize} totalLength={(_a = myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.totalLength) !== null && _a !== void 0 ? _a : 0} pageNumber={pageNumber} onChange={handleOnChange}/>)}
|
|
94
73
|
</HeaderLayout>
|
|
@@ -10,7 +10,6 @@ import { DetailList, FileList, Question, TimeLineData } from '../../_type/type';
|
|
|
10
10
|
import {
|
|
11
11
|
useActionGetCourtFileList,
|
|
12
12
|
useActionGetDetailList,
|
|
13
|
-
useActionGetDaeryunFileList,
|
|
14
13
|
useActionGetMyCaseQuestion,
|
|
15
14
|
useActionGetMyFileList,
|
|
16
15
|
useActionGetTimeLine
|
|
@@ -49,12 +48,6 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
49
48
|
refetch: myFileListRefetch
|
|
50
49
|
} = useActionGetMyFileList(id as string, jwt);
|
|
51
50
|
|
|
52
|
-
const {
|
|
53
|
-
data: daeryunFileList,
|
|
54
|
-
isLoading: daeryunFileListLoading,
|
|
55
|
-
refetch: daeryunFileListRefetch
|
|
56
|
-
} = useActionGetDaeryunFileList(id as string, jwt, !!id);
|
|
57
|
-
|
|
58
51
|
const {
|
|
59
52
|
data: myCaseQuestion,
|
|
60
53
|
isLoading: myCaseQuestionLoading,
|
|
@@ -74,7 +67,7 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
74
67
|
}
|
|
75
68
|
return (
|
|
76
69
|
<Suspense>
|
|
77
|
-
<div className=" relative mt-[
|
|
70
|
+
<div className=" relative mt-[126px] min-h-[700px] md:mt-[78px] md2:mt-[88px]">
|
|
78
71
|
<IntroWrapper
|
|
79
72
|
title={'상세 사건 정보'}
|
|
80
73
|
subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
@@ -87,8 +80,8 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
87
80
|
<div className={'relative z-[1] '}>
|
|
88
81
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
89
82
|
<HeaderLayout>
|
|
90
|
-
<div className="
|
|
91
|
-
|
|
83
|
+
<div className="mt-[210px] sm-top:mt-[283px] lg:mt-[302px] ">
|
|
84
|
+
<div className="flex items-center justify-center gap-[16px] max-[500px]:hidden sm-top:gap-[32px] lg:gap-[28px]">
|
|
92
85
|
<SubMenuButton
|
|
93
86
|
title="사건 기본정보"
|
|
94
87
|
isSelected={selected === '사건 정보'}
|
|
@@ -114,18 +107,14 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
114
107
|
isSelected={selected === '사건문의'}
|
|
115
108
|
onClick={() => setSelected('사건문의')}
|
|
116
109
|
/>
|
|
117
|
-
</div>
|
|
118
|
-
<div className="
|
|
119
|
-
<CaseTabSwiper
|
|
120
|
-
id="case-tab-swiper3"
|
|
121
|
-
scrollClassName=""
|
|
122
|
-
containerClassName="!py-[5px] sm-top:!py-[6px] lg:py-[6px]"
|
|
123
|
-
>
|
|
110
|
+
</div>
|
|
111
|
+
<div className="hidden max-[500px]:block 2sm:pl-[40px]">
|
|
112
|
+
<CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[500px]:!block">
|
|
124
113
|
<SubMenuButton
|
|
125
114
|
title="사건 기본정보"
|
|
126
115
|
isSelected={selected === '사건 정보'}
|
|
127
116
|
onClick={() => setSelected('사건 정보')}
|
|
128
|
-
outerClassName="ml-[20px]
|
|
117
|
+
outerClassName="ml-[20px] swiper-slide"
|
|
129
118
|
/>
|
|
130
119
|
<SubMenuButton
|
|
131
120
|
title="사건 타임라인"
|
|
@@ -167,7 +156,6 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
167
156
|
<Document
|
|
168
157
|
courtFileList={courtFileList?.data as FileList[]}
|
|
169
158
|
myFileList={myFileList?.data as FileList[]}
|
|
170
|
-
daeryunFileList={daeryunFileList?.data as FileList[]}
|
|
171
159
|
id={id as string}
|
|
172
160
|
refetch={myFileListRefetch}
|
|
173
161
|
/>
|
|
@@ -37,7 +37,7 @@ const TimeContainer = ({ list, isFirst }) => {
|
|
|
37
37
|
</>);
|
|
38
38
|
};
|
|
39
39
|
const TimeLine = ({ timeLine, isLoading }) => {
|
|
40
|
-
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[
|
|
40
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] mb-[50px] " innerClassName={'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[80px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
41
41
|
<div className="flex flex-col gap-[16px]">
|
|
42
42
|
{timeLine.length > 0 ? (timeLine === null || timeLine === void 0 ? void 0 : timeLine.map((list, index) => {
|
|
43
43
|
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1}/>;
|
|
@@ -58,7 +58,7 @@ const TimeLine = ({ timeLine, isLoading }: { timeLine: TimeLineData; isLoading:
|
|
|
58
58
|
return (
|
|
59
59
|
<CaseLayout
|
|
60
60
|
isMobilePadding={false}
|
|
61
|
-
outerClassName="mt-[
|
|
61
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] mb-[50px] "
|
|
62
62
|
innerClassName={
|
|
63
63
|
'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[80px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
64
64
|
}
|
|
@@ -66,7 +66,7 @@ const AnswerBox = ({ item, isOpen, openId, setOpenId }) => {
|
|
|
66
66
|
const CaseInquiry = ({ myCaseQuestion, isLoading, id, refetch, pageSize, totalLength, pageNumber, onChange }) => {
|
|
67
67
|
const [openId, setOpenId] = useState('0');
|
|
68
68
|
const [isOpen, setIsOpen] = useState(false);
|
|
69
|
-
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[
|
|
69
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] pb-[80px] 2sm:px-[40px] sm-top:pt-[56px] sm-top:px-[50px] sm-top:pb-[60px] lg:pt-[70px] lg:pb-[80px] lg:px-[60px]'}>
|
|
70
70
|
{isLoading ? (<Loading />) : (<>
|
|
71
71
|
<div className="flex flex-col gap-[8px] sm-top:gap-[12px] lg:gap-[24px]">
|
|
72
72
|
{(myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.length) > 0 ? (myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.map((item, index) => (<AnswerBox key={index} item={item} isOpen={openId === item.idx.toString()} openId={openId} setOpenId={setOpenId}/>))) : (<EmptyTable tap="caseInquiry" subTap={0} isMinHeight={false}/>)}
|
|
@@ -145,7 +145,7 @@ const CaseInquiry = ({
|
|
|
145
145
|
return (
|
|
146
146
|
<CaseLayout
|
|
147
147
|
isMobilePadding={false}
|
|
148
|
-
outerClassName="mt-[
|
|
148
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
149
149
|
innerClassName={
|
|
150
150
|
'pt-[32px] px-[20px] pb-[80px] 2sm:px-[40px] sm-top:pt-[56px] sm-top:px-[50px] sm-top:pb-[60px] lg:pt-[70px] lg:pb-[80px] lg:px-[60px]'
|
|
151
151
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FileList } from '../../../_type/type';
|
|
2
|
-
declare const Document: ({ courtFileList, myFileList,
|
|
2
|
+
declare const Document: ({ courtFileList, myFileList, id, refetch }: {
|
|
3
3
|
courtFileList: FileList[];
|
|
4
4
|
myFileList: FileList[];
|
|
5
|
-
daeryunFileList: FileList[];
|
|
6
5
|
id: string;
|
|
7
6
|
refetch: () => void;
|
|
8
7
|
}) => import("react").JSX.Element;
|
|
@@ -1,75 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useState } from 'react';
|
|
2
2
|
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
3
|
import DocumentLine from './DocumentLine';
|
|
4
4
|
import EmptyTable from '../../../_component/_empty/EmptyTable';
|
|
5
5
|
import FileDropZone from './FileDropZone';
|
|
6
|
-
const Document = ({ courtFileList, myFileList,
|
|
6
|
+
const Document = ({ courtFileList, myFileList, id, refetch }) => {
|
|
7
7
|
const [tap, setTap] = useState('my');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{ title: '보완요청', value: -1 },
|
|
13
|
-
{ title: '완료', value: 1 }
|
|
14
|
-
];
|
|
15
|
-
const coerceStatus = (v) => {
|
|
16
|
-
if (v === null || v === undefined || v === '')
|
|
17
|
-
return 1; // ✅ null은 완료로
|
|
18
|
-
if (v === -1 || v === 0 || v === 1)
|
|
19
|
-
return v;
|
|
20
|
-
const n = typeof v === 'string' ? Number.parseInt(v, 10) : Number(v);
|
|
21
|
-
if (n === -1 || n === 0 || n === 1)
|
|
22
|
-
return n;
|
|
23
|
-
return undefined; // 알 수 없는 값은 매칭 제외
|
|
24
|
-
};
|
|
25
|
-
const filteredDaeryun = useMemo(() => {
|
|
26
|
-
if (!daeryunFileList)
|
|
27
|
-
return [];
|
|
28
|
-
if (subTab === null)
|
|
29
|
-
return daeryunFileList; // 전체
|
|
30
|
-
return daeryunFileList.filter(it => coerceStatus(it.review_status) === subTab);
|
|
31
|
-
}, [daeryunFileList, subTab]);
|
|
32
|
-
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[20px] sm-top:mt-[14px] lg:mt-[28px] " innerClassName={'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:pt-[56px] sm-top:px-[50px] sm-top:pb-[60px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
33
|
-
<div className="flex h-[29px] w-full overflow-hidden sm-top:h-[40px] lg:h-[45px]">
|
|
34
|
-
<button onClick={() => setTap('my')} className={`h-full w-full border-b-[1px] transition-all duration-300 ${tap === 'my' ? 'border-black' : 'border-grayScale4'} pb-[6px] sm-top:pb-[10px] lg:pb-[8px]`}>
|
|
35
|
-
<p className={`body_large1_mo sm-top:body_large1_tb lg:body_large1 ${tap === 'my' ? 'text-black' : 'text-grayScale4'}`}>
|
|
36
|
-
나의전달문서
|
|
37
|
-
</p>
|
|
8
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:pt-[56px] sm-top:px-[50px] sm-top:pb-[60px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
9
|
+
<div className="flex h-[48px] w-full overflow-hidden rounded-[12px] bg-grayScale4 sm-top:h-[60px]">
|
|
10
|
+
<button onClick={() => setTap('my')} className={`h-full w-full transition-all duration-300 ${tap === 'my' ? 'rounded-[12px] border-[2px] border-solid border-grayScale4 bg-white sm-top:border-[3px] lg:border-[4px]' : 'border-[4px] border-solid border-grayScale4 text-white'}`}>
|
|
11
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">나의전달문서</p>
|
|
38
12
|
</button>
|
|
39
|
-
<button onClick={() => setTap('
|
|
40
|
-
<p className=
|
|
41
|
-
대륜전달문서
|
|
42
|
-
</p>
|
|
43
|
-
</button>
|
|
44
|
-
<button onClick={() => setTap('court')} className={`h-full w-full border-b-[1px] transition-all duration-300 ${tap === 'court' ? 'border-black' : 'border-grayScale4'} pb-[6px] sm-top:pb-[10px] lg:pb-[8px]`}>
|
|
45
|
-
<p className={`body_large1_mo sm-top:body_large1_tb lg:body_large1 ${tap === 'court' ? 'text-black' : 'text-grayScale4'}`}>
|
|
46
|
-
법원문서
|
|
47
|
-
</p>
|
|
13
|
+
<button onClick={() => setTap('court')} className={`h-full w-full transition-all duration-300 ${tap === 'court' ? 'rounded-[12px] border-[2px] border-solid border-grayScale4 bg-white sm-top:border-[3px] lg:border-[4px]' : 'border-[4px] border-solid border-grayScale4 text-white'}`}>
|
|
14
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">법원문서</p>
|
|
48
15
|
</button>
|
|
49
16
|
</div>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</div> */}
|
|
55
|
-
{tap === 'my' && <FileDropZone id={id} refetch={refetch}/>}
|
|
56
|
-
<div className={` flex flex-col ${tap === 'daeryun' ? 'mt-[20px] sm-top:mt-[22px] lg:mt-[28px]' : 'mt-[30px] lg:mt-[38px] '}`}>
|
|
57
|
-
{tap === 'daeryun' && (<div className=" mb-[30px] flex items-center gap-[8px] sm-top:gap-[12px] lg:mb-[38px] lg:gap-[16px]">
|
|
58
|
-
{subTabList.map(title => (<button key={title.value} onClick={() => setSubTab(title.value)} className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 flex h-[26px] items-center rounded-[20px] px-[12px] leading-none sm-top:h-[35px] sm-top:px-[14px] lg:h-[41px] lg:px-[28px] ${subTab === title.value ? 'border border-solid border-grayScale1 bg-grayScale1 text-white' : 'border border-solid border-grayScale3 bg-white text-grayScale3'}`}>
|
|
59
|
-
{title.title}
|
|
60
|
-
</button>))}
|
|
61
|
-
</div>)}
|
|
62
|
-
{tap === 'my' && (myFileList === null || myFileList === void 0 ? void 0 : myFileList.length) > 0 ? (<div className="flex flex-col gap-[12px] sm-top:gap-[20px] lg:gap-[28px]">
|
|
63
|
-
{myFileList.map((item, index) => (<DocumentLine item={item} index={index} key={index} id={id}/>))}
|
|
64
|
-
</div>) : (tap === 'my' && <EmptyTable tap="file" subTap={0} titleLabel="나의전달문서"/>)}
|
|
65
|
-
|
|
66
|
-
{tap === 'daeryun' && (filteredDaeryun === null || filteredDaeryun === void 0 ? void 0 : filteredDaeryun.length) > 0 ? (<div className="mb-[80px] flex flex-col gap-[12px] sm-top:gap-[20px] lg:gap-[28px]">
|
|
67
|
-
{filteredDaeryun.map((item, index) => (<DocumentLine item={item} index={index} key={index} id={id}/>))}
|
|
68
|
-
</div>) : (tap === 'daeryun' && <EmptyTable tap="file" subTap={0} titleLabel="대륜전달문서"/>)}
|
|
69
|
-
{tap === 'court' && (courtFileList === null || courtFileList === void 0 ? void 0 : courtFileList.length) > 0 ? (<div className="mb-[80px] flex flex-col gap-[12px] sm-top:gap-[20px] lg:gap-[28px]">
|
|
70
|
-
{courtFileList.map((item, index) => (<DocumentLine item={item} index={index} key={index} id={id}/>))}
|
|
71
|
-
</div>) : (tap === 'court' && <EmptyTable tap="file" subTap={0} titleLabel="법원문서"/>)}
|
|
17
|
+
<div className="mt-[16px] lg:mt-[20px]">
|
|
18
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-black">
|
|
19
|
+
최근 제출순으로 조회됩니다.
|
|
20
|
+
</p>
|
|
72
21
|
</div>
|
|
22
|
+
<div className="mt-[20px] flex flex-col lg:mt-[24px] ">
|
|
23
|
+
{tap === 'my' && (myFileList === null || myFileList === void 0 ? void 0 : myFileList.length) > 0
|
|
24
|
+
? myFileList.map((item, index) => <DocumentLine item={item} index={index} key={index}/>)
|
|
25
|
+
: tap === 'my' && <EmptyTable tap="file" subTap={0}/>}
|
|
26
|
+
{tap === 'court' && (courtFileList === null || courtFileList === void 0 ? void 0 : courtFileList.length) > 0
|
|
27
|
+
? courtFileList.map((item, index) => <DocumentLine item={item} index={index} key={index}/>)
|
|
28
|
+
: tap === 'court' && <EmptyTable tap="file" subTap={0}/>}
|
|
29
|
+
</div>
|
|
30
|
+
{tap === 'my' && <FileDropZone id={id} refetch={refetch}/>}
|
|
73
31
|
</CaseLayout>);
|
|
74
32
|
};
|
|
75
33
|
export default Document;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useState } from 'react';
|
|
2
2
|
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
3
|
|
|
4
4
|
import { FileList } from '../../../_type/type';
|
|
@@ -6,136 +6,56 @@ import { FileList } from '../../../_type/type';
|
|
|
6
6
|
import DocumentLine from './DocumentLine';
|
|
7
7
|
import EmptyTable from '../../../_component/_empty/EmptyTable';
|
|
8
8
|
import FileDropZone from './FileDropZone';
|
|
9
|
-
type ReviewStatus = -1 | 0 | 1;
|
|
10
9
|
|
|
11
|
-
type RawStatus = ReviewStatus | string | number | null | undefined;
|
|
12
10
|
const Document = ({
|
|
13
11
|
courtFileList,
|
|
14
12
|
myFileList,
|
|
15
|
-
daeryunFileList,
|
|
16
13
|
id,
|
|
17
14
|
refetch
|
|
18
15
|
}: {
|
|
19
16
|
courtFileList: FileList[];
|
|
20
17
|
myFileList: FileList[];
|
|
21
|
-
daeryunFileList: FileList[];
|
|
22
18
|
id: string;
|
|
23
19
|
refetch: () => void;
|
|
24
20
|
}) => {
|
|
25
21
|
const [tap, setTap] = useState('my');
|
|
26
22
|
|
|
27
|
-
const [subTab, setSubTab] = useState<number | null>(null);
|
|
28
|
-
const subTabList = [
|
|
29
|
-
{ title: '전체', value: null },
|
|
30
|
-
{ title: '승인대기', value: 0 },
|
|
31
|
-
{ title: '보완요청', value: -1 },
|
|
32
|
-
{ title: '완료', value: 1 }
|
|
33
|
-
];
|
|
34
|
-
const coerceStatus = (v: RawStatus): ReviewStatus | undefined => {
|
|
35
|
-
if (v === null || v === undefined || v === '') return 1; // ✅ null은 완료로
|
|
36
|
-
if (v === -1 || v === 0 || v === 1) return v;
|
|
37
|
-
const n = typeof v === 'string' ? Number.parseInt(v, 10) : Number(v);
|
|
38
|
-
if (n === -1 || n === 0 || n === 1) return n as ReviewStatus;
|
|
39
|
-
return undefined; // 알 수 없는 값은 매칭 제외
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const filteredDaeryun = useMemo(() => {
|
|
43
|
-
if (!daeryunFileList) return [];
|
|
44
|
-
if (subTab === null) return daeryunFileList; // 전체
|
|
45
|
-
return daeryunFileList.filter(it => coerceStatus(it.review_status) === subTab);
|
|
46
|
-
}, [daeryunFileList, subTab]);
|
|
47
|
-
|
|
48
23
|
return (
|
|
49
24
|
<CaseLayout
|
|
50
25
|
isMobilePadding={false}
|
|
51
|
-
outerClassName="mt-[
|
|
26
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
52
27
|
innerClassName={
|
|
53
28
|
'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:pt-[56px] sm-top:px-[50px] sm-top:pb-[60px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
54
29
|
}
|
|
55
30
|
>
|
|
56
|
-
<div className="flex h-[
|
|
31
|
+
<div className="flex h-[48px] w-full overflow-hidden rounded-[12px] bg-grayScale4 sm-top:h-[60px]">
|
|
57
32
|
<button
|
|
58
33
|
onClick={() => setTap('my')}
|
|
59
|
-
className={`h-full w-full
|
|
60
|
-
>
|
|
61
|
-
<p
|
|
62
|
-
className={`body_large1_mo sm-top:body_large1_tb lg:body_large1 ${tap === 'my' ? 'text-black' : 'text-grayScale4'}`}
|
|
63
|
-
>
|
|
64
|
-
나의전달문서
|
|
65
|
-
</p>
|
|
66
|
-
</button>
|
|
67
|
-
<button
|
|
68
|
-
onClick={() => setTap('daeryun')}
|
|
69
|
-
className={`h-full w-full border-b-[1px] transition-all duration-300 ${tap === 'daeryun' ? 'border-black' : 'border-grayScale4'} pb-[6px] sm-top:pb-[10px] lg:pb-[8px]`}
|
|
34
|
+
className={`h-full w-full transition-all duration-300 ${tap === 'my' ? 'rounded-[12px] border-[2px] border-solid border-grayScale4 bg-white sm-top:border-[3px] lg:border-[4px]' : 'border-[4px] border-solid border-grayScale4 text-white'}`}
|
|
70
35
|
>
|
|
71
|
-
<p
|
|
72
|
-
className={`body_large1_mo sm-top:body_large1_tb lg:body_large1 ${tap === 'daeryun' ? 'text-black' : 'text-grayScale4'}`}
|
|
73
|
-
>
|
|
74
|
-
대륜전달문서
|
|
75
|
-
</p>
|
|
36
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">나의전달문서</p>
|
|
76
37
|
</button>
|
|
77
38
|
<button
|
|
78
39
|
onClick={() => setTap('court')}
|
|
79
|
-
className={`h-full w-full
|
|
40
|
+
className={`h-full w-full transition-all duration-300 ${tap === 'court' ? 'rounded-[12px] border-[2px] border-solid border-grayScale4 bg-white sm-top:border-[3px] lg:border-[4px]' : 'border-[4px] border-solid border-grayScale4 text-white'}`}
|
|
80
41
|
>
|
|
81
|
-
<p
|
|
82
|
-
className={`body_large1_mo sm-top:body_large1_tb lg:body_large1 ${tap === 'court' ? 'text-black' : 'text-grayScale4'}`}
|
|
83
|
-
>
|
|
84
|
-
법원문서
|
|
85
|
-
</p>
|
|
42
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">법원문서</p>
|
|
86
43
|
</button>
|
|
87
44
|
</div>
|
|
88
|
-
|
|
45
|
+
<div className="mt-[16px] lg:mt-[20px]">
|
|
89
46
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-black">
|
|
90
47
|
최근 제출순으로 조회됩니다.
|
|
91
48
|
</p>
|
|
92
|
-
</div> */}
|
|
93
|
-
{tap === 'my' && <FileDropZone id={id} refetch={refetch} />}
|
|
94
|
-
<div
|
|
95
|
-
className={` flex flex-col ${tap === 'daeryun' ? 'mt-[20px] sm-top:mt-[22px] lg:mt-[28px]' : 'mt-[30px] lg:mt-[38px] '}`}
|
|
96
|
-
>
|
|
97
|
-
{tap === 'daeryun' && (
|
|
98
|
-
<div className=" mb-[30px] flex items-center gap-[8px] sm-top:gap-[12px] lg:mb-[38px] lg:gap-[16px]">
|
|
99
|
-
{subTabList.map(title => (
|
|
100
|
-
<button
|
|
101
|
-
key={title.value}
|
|
102
|
-
onClick={() => setSubTab(title.value as number | null)}
|
|
103
|
-
className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 flex h-[26px] items-center rounded-[20px] px-[12px] leading-none sm-top:h-[35px] sm-top:px-[14px] lg:h-[41px] lg:px-[28px] ${subTab === title.value ? 'border border-solid border-grayScale1 bg-grayScale1 text-white' : 'border border-solid border-grayScale3 bg-white text-grayScale3'}`}
|
|
104
|
-
>
|
|
105
|
-
{title.title}
|
|
106
|
-
</button>
|
|
107
|
-
))}
|
|
108
|
-
</div>
|
|
109
|
-
)}
|
|
110
|
-
{tap === 'my' && myFileList?.length > 0 ? (
|
|
111
|
-
<div className="flex flex-col gap-[12px] sm-top:gap-[20px] lg:gap-[28px]">
|
|
112
|
-
{myFileList.map((item, index) => (
|
|
113
|
-
<DocumentLine item={item} index={index} key={index} id={id} />
|
|
114
|
-
))}
|
|
115
|
-
</div>
|
|
116
|
-
) : (
|
|
117
|
-
tap === 'my' && <EmptyTable tap="file" subTap={0} titleLabel="나의전달문서" />
|
|
118
|
-
)}
|
|
119
|
-
|
|
120
|
-
{tap === 'daeryun' && filteredDaeryun?.length > 0 ? (
|
|
121
|
-
<div className="mb-[80px] flex flex-col gap-[12px] sm-top:gap-[20px] lg:gap-[28px]">
|
|
122
|
-
{filteredDaeryun.map((item, index) => (
|
|
123
|
-
<DocumentLine item={item} index={index} key={index} id={id} />
|
|
124
|
-
))}
|
|
125
|
-
</div>
|
|
126
|
-
) : (
|
|
127
|
-
tap === 'daeryun' && <EmptyTable tap="file" subTap={0} titleLabel="대륜전달문서" />
|
|
128
|
-
)}
|
|
129
|
-
{tap === 'court' && courtFileList?.length > 0 ? (
|
|
130
|
-
<div className="mb-[80px] flex flex-col gap-[12px] sm-top:gap-[20px] lg:gap-[28px]">
|
|
131
|
-
{courtFileList.map((item, index) => (
|
|
132
|
-
<DocumentLine item={item} index={index} key={index} id={id} />
|
|
133
|
-
))}
|
|
134
|
-
</div>
|
|
135
|
-
) : (
|
|
136
|
-
tap === 'court' && <EmptyTable tap="file" subTap={0} titleLabel="법원문서" />
|
|
137
|
-
)}
|
|
138
49
|
</div>
|
|
50
|
+
<div className="mt-[20px] flex flex-col lg:mt-[24px] ">
|
|
51
|
+
{tap === 'my' && myFileList?.length > 0
|
|
52
|
+
? myFileList.map((item, index) => <DocumentLine item={item} index={index} key={index} />)
|
|
53
|
+
: tap === 'my' && <EmptyTable tap="file" subTap={0} />}
|
|
54
|
+
{tap === 'court' && courtFileList?.length > 0
|
|
55
|
+
? courtFileList.map((item, index) => <DocumentLine item={item} index={index} key={index} />)
|
|
56
|
+
: tap === 'court' && <EmptyTable tap="file" subTap={0} />}
|
|
57
|
+
</div>
|
|
58
|
+
{tap === 'my' && <FileDropZone id={id} refetch={refetch} />}
|
|
139
59
|
</CaseLayout>
|
|
140
60
|
);
|
|
141
61
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FileList } from '../../../_type/type';
|
|
2
|
-
declare const DocumentLine: ({ item, index
|
|
2
|
+
declare const DocumentLine: ({ item, index }: {
|
|
3
3
|
item: FileList;
|
|
4
4
|
index: number;
|
|
5
|
-
id: string;
|
|
6
5
|
}) => import("react").JSX.Element;
|
|
7
6
|
export default DocumentLine;
|