@daeryun/dr_components 0.3.0 → 0.3.2
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/ViewMoreSection/ViewMoreSection.jsx +1 -1
- package/dist/components/ViewMoreSection/ViewMoreSection.tsx +1 -1
- package/dist/components/banner/TopBanner.jsx +2 -34
- package/dist/components/banner/TopBanner.tsx +1 -37
- package/dist/components/page/index.d.ts +0 -4
- package/dist/components/page/index.js +4 -4
- package/dist/components/page/index.ts +4 -4
- package/dist/styles/globals.css +115 -2077
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/page/MyCase/MyCase.stories.d.ts +0 -6
- package/dist/components/page/MyCase/MyCase.stories.jsx +0 -17
- package/dist/components/page/MyCase/MyCase.stories.tsx +0 -25
- package/dist/components/page/MyCase/MyCaseApp.d.ts +0 -2
- package/dist/components/page/MyCase/MyCaseApp.jsx +0 -19
- package/dist/components/page/MyCase/MyCaseApp.tsx +0 -32
- package/dist/components/page/MyCase/MyCasePage.d.ts +0 -3
- package/dist/components/page/MyCase/MyCasePage.jsx +0 -21
- package/dist/components/page/MyCase/MyCasePage.tsx +0 -32
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +0 -17
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +0 -25
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +0 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +0 -66
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +0 -159
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +0 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +0 -65
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +0 -157
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +0 -2
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +0 -79
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +0 -102
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +0 -44
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +0 -94
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +0 -46
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +0 -72
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +0 -11
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +0 -80
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +0 -188
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +0 -35
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +0 -59
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +0 -76
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +0 -94
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +0 -107
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +0 -150
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +0 -25
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +0 -55
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +0 -26
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +0 -39
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +0 -4
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +0 -24
- package/dist/components/page/MyCase/_actions/action.d.ts +0 -35
- package/dist/components/page/MyCase/_actions/action.js +0 -145
- package/dist/components/page/MyCase/_actions/action.ts +0 -165
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +0 -2
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +0 -117
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +0 -255
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +0 -2
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +0 -106
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +0 -244
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +0 -47
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +0 -77
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +0 -8
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +0 -47
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +0 -77
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +0 -14
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +0 -16
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +0 -22
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +0 -9
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +0 -33
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +0 -9
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +0 -31
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +0 -6
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +0 -75
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +0 -85
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +0 -11
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +0 -12
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +0 -25
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +0 -41
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +0 -4
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +0 -4
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +0 -5
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +0 -80
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.jsx +0 -31
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.tsx +0 -81
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +0 -2
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +0 -89
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +0 -92
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +0 -82
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +0 -137
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +0 -81
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +0 -135
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +0 -65
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +0 -79
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +0 -63
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +0 -94
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +0 -11
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +0 -28
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +0 -5
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +0 -35
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +0 -43
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +0 -11
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +0 -28
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +0 -6
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +0 -31
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +0 -22
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getCase.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCase.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +0 -24
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +0 -24
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +0 -21
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +0 -11
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.d.ts +0 -7
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.js +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.ts +0 -11
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +0 -15
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +0 -21
- package/dist/components/page/MyCase/_type/type.d.ts +0 -73
- package/dist/components/page/MyCase/_type/type.js +0 -1
- package/dist/components/page/MyCase/_type/type.ts +0 -81
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import IntroWrapper from '../_component/_layout/IntroPageWrapper';
|
|
4
|
-
|
|
5
|
-
import SubMenuButton from '../_component/_button/SubMenuButton';
|
|
6
|
-
import HeaderLayout from '../_component/_layout/HeaderLayout';
|
|
7
|
-
import DetailInfo from './_component/DetailInfo';
|
|
8
|
-
import { useRouter } from 'next/router';
|
|
9
|
-
|
|
10
|
-
import { DetailList, FileList, Question, TimeLineType } from '../_type/type';
|
|
11
|
-
import {
|
|
12
|
-
useGetCourtFileList,
|
|
13
|
-
useGetDetailList,
|
|
14
|
-
useGetMyCaseQuestion,
|
|
15
|
-
useGetMyFileList,
|
|
16
|
-
useGetTimeLine
|
|
17
|
-
} from '../_actions/action';
|
|
18
|
-
|
|
19
|
-
import TimeLine from './_component/TimeLine';
|
|
20
|
-
import Document from './_component/_document/Document';
|
|
21
|
-
import ContactInfo from './_component/ContactInfo';
|
|
22
|
-
import CaseInquiry from './_component/_caseInquiry/CaseInquiry';
|
|
23
|
-
import CaseTabSwiper from '../_component/_table/CaseTabSwiper';
|
|
24
|
-
import background from '../../../../asset/images/myCase/background.webp';
|
|
25
|
-
import backgroundTb from '../../../../asset/images/myCase/background_tb.webp';
|
|
26
|
-
import backgroundMo from '../../../../asset/images/myCase/background_mo.webp';
|
|
27
|
-
|
|
28
|
-
const MyCaseDetail = () => {
|
|
29
|
-
const [selected, setSelected] = useState<string>('사건 정보');
|
|
30
|
-
// const { searchParams } = useCompatibleRouter();
|
|
31
|
-
const router = useRouter();
|
|
32
|
-
const { id } = router.query;
|
|
33
|
-
|
|
34
|
-
const { page, tap, subTap } = router.query;
|
|
35
|
-
// const params = useParams();
|
|
36
|
-
// const { page, tap, subTap } = searchParams ? Object.fromEntries(searchParams.entries()) : {};
|
|
37
|
-
const pageNumber = page ? Number(page) : 1;
|
|
38
|
-
const [pageSize, setPageSize] = useState(3);
|
|
39
|
-
|
|
40
|
-
const { data: detailList, isLoading: detailListLoading } = useGetDetailList(id as string);
|
|
41
|
-
const { data: timeLine, isLoading: timeLineLoading } = useGetTimeLine(id as string);
|
|
42
|
-
const { data: courtFileList, isLoading: courtFileListLoading } = useGetCourtFileList(id as string);
|
|
43
|
-
const { data: myFileList, isLoading: myFileListLoading } = useGetMyFileList(id as string);
|
|
44
|
-
const {
|
|
45
|
-
data: myCaseQuestion,
|
|
46
|
-
isLoading: myCaseQuestionLoading,
|
|
47
|
-
refetch: myCaseQuestionRefetch
|
|
48
|
-
} = useGetMyCaseQuestion(id as string, pageNumber, pageSize);
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
|
|
52
|
-
<IntroWrapper
|
|
53
|
-
title={'상세 사건 정보'}
|
|
54
|
-
subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
|
|
55
|
-
backgroundImage={background}
|
|
56
|
-
backgroundImageTb={backgroundTb}
|
|
57
|
-
backgroundImageMo={backgroundMo}
|
|
58
|
-
outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"
|
|
59
|
-
/>
|
|
60
|
-
|
|
61
|
-
<div className={'relative z-[1] '}>
|
|
62
|
-
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
63
|
-
<HeaderLayout>
|
|
64
|
-
<div className="sm-top:mt-[283px] mt-[210px] lg:mt-[302px] ">
|
|
65
|
-
<div className="max-sm-top:hidden sm-top:gap-[32px] flex items-center justify-center lg:gap-[28px]">
|
|
66
|
-
<SubMenuButton
|
|
67
|
-
title="사건 정보"
|
|
68
|
-
isSelected={selected === '사건 정보'}
|
|
69
|
-
onClick={() => setSelected('사건 정보')}
|
|
70
|
-
/>
|
|
71
|
-
<SubMenuButton
|
|
72
|
-
title="사건 타임라인"
|
|
73
|
-
isSelected={selected === '사건 타임라인'}
|
|
74
|
-
onClick={() => setSelected('사건 타임라인')}
|
|
75
|
-
/>
|
|
76
|
-
<SubMenuButton
|
|
77
|
-
title="문서함"
|
|
78
|
-
isSelected={selected === '문서함'}
|
|
79
|
-
onClick={() => setSelected('문서함')}
|
|
80
|
-
/>
|
|
81
|
-
<SubMenuButton
|
|
82
|
-
title="계약정보"
|
|
83
|
-
isSelected={selected === '계약정보'}
|
|
84
|
-
onClick={() => setSelected('계약정보')}
|
|
85
|
-
/>
|
|
86
|
-
<SubMenuButton
|
|
87
|
-
title="사건문의"
|
|
88
|
-
isSelected={selected === '사건문의'}
|
|
89
|
-
onClick={() => setSelected('사건문의')}
|
|
90
|
-
/>
|
|
91
|
-
</div>
|
|
92
|
-
<div className="sm-top:hidden 2sm:pl-[40px]">
|
|
93
|
-
<CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[500px]:!block">
|
|
94
|
-
<SubMenuButton
|
|
95
|
-
title="사건 정보"
|
|
96
|
-
isSelected={selected === '사건 정보'}
|
|
97
|
-
onClick={() => setSelected('사건 정보')}
|
|
98
|
-
outerClassName="ml-[20px]"
|
|
99
|
-
/>
|
|
100
|
-
<SubMenuButton
|
|
101
|
-
title="사건 타임라인"
|
|
102
|
-
isSelected={selected === '사건 타임라인'}
|
|
103
|
-
onClick={() => setSelected('사건 타임라인')}
|
|
104
|
-
/>
|
|
105
|
-
<SubMenuButton
|
|
106
|
-
title="문서함"
|
|
107
|
-
isSelected={selected === '문서함'}
|
|
108
|
-
onClick={() => setSelected('문서함')}
|
|
109
|
-
/>
|
|
110
|
-
<SubMenuButton
|
|
111
|
-
title="계약정보"
|
|
112
|
-
isSelected={selected === '계약정보'}
|
|
113
|
-
onClick={() => setSelected('계약정보')}
|
|
114
|
-
/>
|
|
115
|
-
<SubMenuButton
|
|
116
|
-
title="사건문의"
|
|
117
|
-
isSelected={selected === '사건문의'}
|
|
118
|
-
onClick={() => setSelected('사건문의')}
|
|
119
|
-
outerClassName="!mr-[0px]"
|
|
120
|
-
/>
|
|
121
|
-
</CaseTabSwiper>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
{selected === '사건 정보' && (
|
|
125
|
-
<DetailInfo detailList={detailList?.data as DetailList} isLoading={detailListLoading} />
|
|
126
|
-
)}
|
|
127
|
-
{selected === '사건 타임라인' && (
|
|
128
|
-
<TimeLine
|
|
129
|
-
timeLine={timeLine?.list as unknown as TimeLineType[][]}
|
|
130
|
-
isLoading={timeLineLoading}
|
|
131
|
-
/>
|
|
132
|
-
)}
|
|
133
|
-
{selected === '문서함' && (
|
|
134
|
-
<Document
|
|
135
|
-
courtFileList={courtFileList?.data as FileList[]}
|
|
136
|
-
myFileList={myFileList?.data as FileList[]}
|
|
137
|
-
/>
|
|
138
|
-
)}
|
|
139
|
-
{selected === '계약정보' && <ContactInfo />}
|
|
140
|
-
{selected === '사건문의' && (
|
|
141
|
-
<CaseInquiry
|
|
142
|
-
myCaseQuestion={myCaseQuestion?.list as unknown as Question[]}
|
|
143
|
-
id={id as string}
|
|
144
|
-
refetch={myCaseQuestionRefetch}
|
|
145
|
-
pageSize={pageSize}
|
|
146
|
-
totalLength={myCaseQuestion?.totalLength ?? 0}
|
|
147
|
-
pageNumber={pageNumber}
|
|
148
|
-
onChange={() => {}}
|
|
149
|
-
/>
|
|
150
|
-
)}
|
|
151
|
-
</HeaderLayout>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
);
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export default MyCaseDetail;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
-
const Label = ({ title, status }) => {
|
|
4
|
-
return (<div className="sm-top:gap-[8px] flex flex-row items-center gap-[4px]">
|
|
5
|
-
<div className={`sm-top:h-[8px] sm-top:w-[8px] h-[6px] w-[6px] rounded-full lg:h-[12px] lg:w-[12px] ${status ? 'bg-mycaseMainColor' : 'bg-grayScale4'}`}/>
|
|
6
|
-
<p className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 ${status ? 'text-mycaseMainColor' : 'text-grayScale4'}`}>
|
|
7
|
-
{title}
|
|
8
|
-
</p>
|
|
9
|
-
</div>);
|
|
10
|
-
};
|
|
11
|
-
const LineBox = ({ children, title }) => {
|
|
12
|
-
return (<div className=" sm-top:py-[24px] border-b-[1px] border-solid border-grayScale6 pb-[8px] pt-[24px]">
|
|
13
|
-
{title && <p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>}
|
|
14
|
-
<div className="flex flex-row items-center justify-between">{children}</div>
|
|
15
|
-
</div>);
|
|
16
|
-
};
|
|
17
|
-
const ContactInfo = () => {
|
|
18
|
-
const list = {
|
|
19
|
-
payment_status: 'partial', //일부납/완납
|
|
20
|
-
deposit_amount: 10000000, // 착수금
|
|
21
|
-
remaining_amount: 4500000, // 잔여금액
|
|
22
|
-
payments: [
|
|
23
|
-
{
|
|
24
|
-
title: '상담비',
|
|
25
|
-
created_at: '2025-02-18 14:53:14',
|
|
26
|
-
amount: 110000,
|
|
27
|
-
method: '신용카드 - 현대카드 (일시불)'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: '수임료',
|
|
31
|
-
created_at: '2025-02-19 14:53:14',
|
|
32
|
-
amount: 3290000,
|
|
33
|
-
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
34
|
-
},
|
|
35
|
-
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
36
|
-
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
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]'}>
|
|
40
|
-
<div className="sm-top:gap-[28px] flex flex-row gap-[12px] lg:gap-[32px]">
|
|
41
|
-
<Label title="일부납" status={list.payment_status === 'partial'}/>
|
|
42
|
-
<Label title="완납" status={list.payment_status !== 'partial'}/>
|
|
43
|
-
</div>
|
|
44
|
-
<div className={'sm-top:mt-[28px] mt-[16px] lg:mt-[26px]'}>
|
|
45
|
-
<LineBox>
|
|
46
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">착수금</p>
|
|
47
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
48
|
-
{list.deposit_amount.toLocaleString()}원
|
|
49
|
-
</p>
|
|
50
|
-
</LineBox>
|
|
51
|
-
|
|
52
|
-
{list.payments.map((item, index) => (<LineBox key={index} title={index === 0 ? '입금액' : ''}>
|
|
53
|
-
<div className={`${index === 0 ? 'sm-top:mt-[16px] mt-[13px] lg:mt-[25px] ' : ''} sm-top:gap-[12px] flex flex-col gap-[8px] lg:gap-[8px]`}>
|
|
54
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
55
|
-
{item.title}
|
|
56
|
-
</p>
|
|
57
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
58
|
-
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
59
|
-
</p>
|
|
60
|
-
</div>
|
|
61
|
-
<div className="sm-top:gap-[12px] flex flex-col items-end gap-[8px] lg:gap-[8px]">
|
|
62
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
63
|
-
{item.amount.toLocaleString()}원
|
|
64
|
-
</p>
|
|
65
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
66
|
-
{item.method}
|
|
67
|
-
</p>
|
|
68
|
-
</div>
|
|
69
|
-
</LineBox>))}
|
|
70
|
-
<LineBox>
|
|
71
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">잔여금액</p>
|
|
72
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
73
|
-
{list.remaining_amount.toLocaleString()}원
|
|
74
|
-
</p>
|
|
75
|
-
</LineBox>
|
|
76
|
-
</div>
|
|
77
|
-
</CaseLayout>);
|
|
78
|
-
};
|
|
79
|
-
export default ContactInfo;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
-
import { PaymentList, Payment } from '../../_type/type';
|
|
4
|
-
|
|
5
|
-
const Label = ({ title, status }: { title: string; status: boolean }) => {
|
|
6
|
-
return (
|
|
7
|
-
<div className="sm-top:gap-[8px] flex flex-row items-center gap-[4px]">
|
|
8
|
-
<div
|
|
9
|
-
className={`sm-top:h-[8px] sm-top:w-[8px] h-[6px] w-[6px] rounded-full lg:h-[12px] lg:w-[12px] ${status ? 'bg-mycaseMainColor' : 'bg-grayScale4'}`}
|
|
10
|
-
/>
|
|
11
|
-
<p
|
|
12
|
-
className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 ${status ? 'text-mycaseMainColor' : 'text-grayScale4'}`}
|
|
13
|
-
>
|
|
14
|
-
{title}
|
|
15
|
-
</p>
|
|
16
|
-
</div>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
const LineBox = ({ children, title }: { children: React.ReactNode; title?: string }) => {
|
|
20
|
-
return (
|
|
21
|
-
<div className=" sm-top:py-[24px] border-b-[1px] border-solid border-grayScale6 pb-[8px] pt-[24px]">
|
|
22
|
-
{title && <p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>}
|
|
23
|
-
<div className="flex flex-row items-center justify-between">{children}</div>
|
|
24
|
-
</div>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
const ContactInfo = () => {
|
|
28
|
-
const list: PaymentList = {
|
|
29
|
-
payment_status: 'partial', //일부납/완납
|
|
30
|
-
deposit_amount: 10000000, // 착수금
|
|
31
|
-
remaining_amount: 4500000, // 잔여금액
|
|
32
|
-
payments: [
|
|
33
|
-
{
|
|
34
|
-
title: '상담비',
|
|
35
|
-
created_at: '2025-02-18 14:53:14',
|
|
36
|
-
amount: 110000,
|
|
37
|
-
method: '신용카드 - 현대카드 (일시불)'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
title: '수임료',
|
|
41
|
-
created_at: '2025-02-19 14:53:14',
|
|
42
|
-
amount: 3290000,
|
|
43
|
-
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
44
|
-
},
|
|
45
|
-
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
46
|
-
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
47
|
-
]
|
|
48
|
-
};
|
|
49
|
-
return (
|
|
50
|
-
<CaseLayout
|
|
51
|
-
isMobilePadding={false}
|
|
52
|
-
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
53
|
-
innerClassName={
|
|
54
|
-
'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]'
|
|
55
|
-
}
|
|
56
|
-
>
|
|
57
|
-
<div className="sm-top:gap-[28px] flex flex-row gap-[12px] lg:gap-[32px]">
|
|
58
|
-
<Label title="일부납" status={list.payment_status === 'partial'} />
|
|
59
|
-
<Label title="완납" status={list.payment_status !== 'partial'} />
|
|
60
|
-
</div>
|
|
61
|
-
<div className={'sm-top:mt-[28px] mt-[16px] lg:mt-[26px]'}>
|
|
62
|
-
<LineBox>
|
|
63
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">착수금</p>
|
|
64
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
65
|
-
{list.deposit_amount.toLocaleString()}원
|
|
66
|
-
</p>
|
|
67
|
-
</LineBox>
|
|
68
|
-
|
|
69
|
-
{list.payments.map((item, index) => (
|
|
70
|
-
<LineBox key={index} title={index === 0 ? '입금액' : ''}>
|
|
71
|
-
<div
|
|
72
|
-
className={`${index === 0 ? 'sm-top:mt-[16px] mt-[13px] lg:mt-[25px] ' : ''} sm-top:gap-[12px] flex flex-col gap-[8px] lg:gap-[8px]`}
|
|
73
|
-
>
|
|
74
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
75
|
-
{item.title}
|
|
76
|
-
</p>
|
|
77
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
78
|
-
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
79
|
-
</p>
|
|
80
|
-
</div>
|
|
81
|
-
<div className="sm-top:gap-[12px] flex flex-col items-end gap-[8px] lg:gap-[8px]">
|
|
82
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
83
|
-
{item.amount.toLocaleString()}원
|
|
84
|
-
</p>
|
|
85
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
86
|
-
{item.method}
|
|
87
|
-
</p>
|
|
88
|
-
</div>
|
|
89
|
-
</LineBox>
|
|
90
|
-
))}
|
|
91
|
-
<LineBox>
|
|
92
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">잔여금액</p>
|
|
93
|
-
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
94
|
-
{list.remaining_amount.toLocaleString()}원
|
|
95
|
-
</p>
|
|
96
|
-
</LineBox>
|
|
97
|
-
</div>
|
|
98
|
-
</CaseLayout>
|
|
99
|
-
);
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export default ContactInfo;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import Image from 'next/image';
|
|
2
|
-
import Link from 'next/link';
|
|
3
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
4
|
-
import Loading from '../../_component/_loading/Loading';
|
|
5
|
-
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
6
|
-
const Line = ({ title, content, isFirst = false }) => {
|
|
7
|
-
return (<div className={`lg;py-[28px] border-grayScale5 sm-top:py-[20px] flex flex-row border-solid py-[20px] ${isFirst ? 'border-y-[1px]' : 'border-b-[1px]'}`}>
|
|
8
|
-
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 w-[30%]">{title}</div>
|
|
9
|
-
<div className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 w-[70%]">
|
|
10
|
-
{Array.isArray(content)
|
|
11
|
-
? content.map((item, index) => <div key={index}>{item}</div>)
|
|
12
|
-
: content
|
|
13
|
-
? content
|
|
14
|
-
: '-'}
|
|
15
|
-
</div>
|
|
16
|
-
</div>);
|
|
17
|
-
};
|
|
18
|
-
const DetailInfo = ({ detailList, isLoading }) => {
|
|
19
|
-
var _a, _b, _c;
|
|
20
|
-
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]'}>
|
|
21
|
-
{isLoading ? (<Loading />) : (<>
|
|
22
|
-
<Line title="사건번호" content={detailList === null || detailList === void 0 ? void 0 : detailList.case_number} isFirst/>
|
|
23
|
-
<Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
|
|
24
|
-
<Line title="사건명" content={detailList === null || detailList === void 0 ? void 0 : detailList.title}/>
|
|
25
|
-
<Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
|
|
26
|
-
<Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.accept_date}/>
|
|
27
|
-
<Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
|
|
28
|
-
<Line title="담당 변호사" content={detailList === null || detailList === void 0 ? void 0 : detailList.lawyer}/>
|
|
29
|
-
<Line title="나의 정보" content={`${(_a = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _a === void 0 ? void 0 : _a.position} / ${(_b = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _b === void 0 ? void 0 : _b.name} / ${(_c = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _c === void 0 ? void 0 : _c.tel}`}/>
|
|
30
|
-
<Line title="상대방 정보" content={(detailList === null || detailList === void 0 ? void 0 : detailList.other_info.length) > 0
|
|
31
|
-
? detailList === null || detailList === void 0 ? void 0 : detailList.other_info.map((info, index) => `${info.position} / ${info.name} / ${info.tel}`)
|
|
32
|
-
: '-'}/>
|
|
33
|
-
<Link href="#" className={'itesm-center sm-top:mt-[20px] top-[16px] mt-[16px] flex w-full justify-end'}>
|
|
34
|
-
<div className="flex flex-row items-center gap-[8px] lg:gap-[12px]">
|
|
35
|
-
<Image src={caseLookupLinkout} alt="edit" width={28} height={28} className="sm-top:h-[20px] sm-top:w-[20px] h-[16px] w-[16px] lg:h-[28px] lg:w-[28px]"/>
|
|
36
|
-
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2">
|
|
37
|
-
대법원 사건 조회하기
|
|
38
|
-
</p>
|
|
39
|
-
</div>
|
|
40
|
-
</Link>
|
|
41
|
-
</>)}
|
|
42
|
-
</CaseLayout>);
|
|
43
|
-
};
|
|
44
|
-
export default DetailInfo;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { useQuery } from 'react-query';
|
|
2
|
-
import getCase from '../../_fetchers/getCase';
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
import { DetailList } from '../../_type/type';
|
|
5
|
-
import Image from 'next/image';
|
|
6
|
-
import Link from 'next/link';
|
|
7
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
8
|
-
import Loading from '../../_component/_loading/Loading';
|
|
9
|
-
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
10
|
-
|
|
11
|
-
const Line = ({
|
|
12
|
-
title,
|
|
13
|
-
content,
|
|
14
|
-
isFirst = false
|
|
15
|
-
}: {
|
|
16
|
-
title: string;
|
|
17
|
-
content: string | string[];
|
|
18
|
-
isFirst?: boolean;
|
|
19
|
-
}) => {
|
|
20
|
-
return (
|
|
21
|
-
<div
|
|
22
|
-
className={`lg;py-[28px] border-grayScale5 sm-top:py-[20px] flex flex-row border-solid py-[20px] ${
|
|
23
|
-
isFirst ? 'border-y-[1px]' : 'border-b-[1px]'
|
|
24
|
-
}`}
|
|
25
|
-
>
|
|
26
|
-
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 w-[30%]">{title}</div>
|
|
27
|
-
<div className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 w-[70%]">
|
|
28
|
-
{Array.isArray(content)
|
|
29
|
-
? content.map((item, index) => <div key={index}>{item}</div>)
|
|
30
|
-
: content
|
|
31
|
-
? content
|
|
32
|
-
: '-'}
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoading: boolean }) => {
|
|
38
|
-
return (
|
|
39
|
-
<CaseLayout
|
|
40
|
-
isMobilePadding={false}
|
|
41
|
-
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
42
|
-
innerClassName={
|
|
43
|
-
'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]'
|
|
44
|
-
}
|
|
45
|
-
>
|
|
46
|
-
{isLoading ? (
|
|
47
|
-
<Loading />
|
|
48
|
-
) : (
|
|
49
|
-
<>
|
|
50
|
-
<Line title="사건번호" content={detailList?.case_number} isFirst />
|
|
51
|
-
<Line title="법원명" content={detailList?.agency_name} />
|
|
52
|
-
<Line title="사건명" content={detailList?.title} />
|
|
53
|
-
<Line title="진행단계" content={detailList?.state} />
|
|
54
|
-
<Line title="사건 시작일" content={detailList?.accept_date} />
|
|
55
|
-
<Line title="사건 종료일" content={detailList?.end_date} />
|
|
56
|
-
<Line title="담당 변호사" content={detailList?.lawyer} />
|
|
57
|
-
<Line
|
|
58
|
-
title="나의 정보"
|
|
59
|
-
content={`${detailList?.my_info?.position} / ${detailList?.my_info?.name} / ${detailList?.my_info?.tel}`}
|
|
60
|
-
/>
|
|
61
|
-
<Line
|
|
62
|
-
title="상대방 정보"
|
|
63
|
-
content={
|
|
64
|
-
detailList?.other_info.length > 0
|
|
65
|
-
? detailList?.other_info.map(
|
|
66
|
-
(info, index) => `${info.position} / ${info.name} / ${info.tel}`
|
|
67
|
-
)
|
|
68
|
-
: '-'
|
|
69
|
-
}
|
|
70
|
-
/>
|
|
71
|
-
<Link
|
|
72
|
-
href="#"
|
|
73
|
-
className={'itesm-center sm-top:mt-[20px] top-[16px] mt-[16px] flex w-full justify-end'}
|
|
74
|
-
>
|
|
75
|
-
<div className="flex flex-row items-center gap-[8px] lg:gap-[12px]">
|
|
76
|
-
<Image
|
|
77
|
-
src={caseLookupLinkout}
|
|
78
|
-
alt="edit"
|
|
79
|
-
width={28}
|
|
80
|
-
height={28}
|
|
81
|
-
className="sm-top:h-[20px] sm-top:w-[20px] h-[16px] w-[16px] lg:h-[28px] lg:w-[28px]"
|
|
82
|
-
/>
|
|
83
|
-
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2">
|
|
84
|
-
대법원 사건 조회하기
|
|
85
|
-
</p>
|
|
86
|
-
</div>
|
|
87
|
-
</Link>
|
|
88
|
-
</>
|
|
89
|
-
)}
|
|
90
|
-
</CaseLayout>
|
|
91
|
-
);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export default DetailInfo;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import checkCircle from '../../../../../asset/images/myCase/icon/check_circle.webp';
|
|
5
|
-
import checkCircle2 from '../../../../../asset/images/myCase/icon/check_circle2.webp';
|
|
6
|
-
const TimeBox = ({ item }) => {
|
|
7
|
-
return (<div className="sm-top:py-[20px] sm-top:px-[28px] sm-top:rounded-[8px] bg-grayScale7 rounded-[4px] px-[20px] py-[16px] lg:rounded-[12px] lg:px-[28px] lg:py-[20px]">
|
|
8
|
-
<div className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
9
|
-
{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}
|
|
10
|
-
</div>
|
|
11
|
-
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 sm-top:mt-[6px] mt-[8px] lg:mt-[8px]">
|
|
12
|
-
{item.title}
|
|
13
|
-
</div>
|
|
14
|
-
</div>);
|
|
15
|
-
};
|
|
16
|
-
const TimeContainer = ({ list, isFirst }) => {
|
|
17
|
-
const imgUrl = list[0].is_highest_court ? checkCircle : checkCircle2;
|
|
18
|
-
const color = list[0].is_highest_court ? 'text-subColor05' : 'text-mycaseMainColor';
|
|
19
|
-
const borderColor = list[0].is_highest_court ? 'border-subColor05' : 'border-mycaseMainColor';
|
|
20
|
-
return (<>
|
|
21
|
-
<div className="sm-top:gap-[16px] flex flex-col gap-[14px] lg:gap-[13px]">
|
|
22
|
-
<div className="sm-top:gap-[12px] flex flex-row items-center gap-[8px]">
|
|
23
|
-
<Image unoptimized src={imgUrl} alt="arrow" width={24} height={24} className="sm-top:w-[20px] sm-top:h-[20px] h-[16px] w-[16px] lg:h-[24px] lg:w-[24px]"/>
|
|
24
|
-
<p className={`body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 ${color}`}>
|
|
25
|
-
{list[0].title}
|
|
26
|
-
</p>
|
|
27
|
-
</div>
|
|
28
|
-
<div className={`sm-top:ml-[6px] sm-top:pl-[22px] ml-[8px] pl-[16px] lg:ml-[12px] lg:pl-[28px] ${borderColor} flex flex-col gap-[16px] ` +
|
|
29
|
-
`${isFirst ? '' : 'sm-top:border-l-[1.5px] border-l-[1px] border-solid lg:border-l-[2px] '}`}>
|
|
30
|
-
{list.map((item) => {
|
|
31
|
-
return <TimeBox key={item.idx} item={item}/>;
|
|
32
|
-
})}
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</>);
|
|
36
|
-
};
|
|
37
|
-
const TimeLine = ({ timeLine, isLoading }) => {
|
|
38
|
-
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " 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]'}>
|
|
39
|
-
<div className="flex flex-col gap-[16px]">
|
|
40
|
-
{timeLine.map((list, index) => {
|
|
41
|
-
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1}/>;
|
|
42
|
-
})}
|
|
43
|
-
</div>
|
|
44
|
-
</CaseLayout>);
|
|
45
|
-
};
|
|
46
|
-
export default TimeLine;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import { TimeLineType } from '../../_type/type';
|
|
5
|
-
import checkCircle from '../../../../../asset/images/myCase/icon/check_circle.webp';
|
|
6
|
-
import checkCircle2 from '../../../../../asset/images/myCase/icon/check_circle2.webp';
|
|
7
|
-
const TimeBox = ({ item }: { item: any }) => {
|
|
8
|
-
return (
|
|
9
|
-
<div className="sm-top:py-[20px] sm-top:px-[28px] sm-top:rounded-[8px] bg-grayScale7 rounded-[4px] px-[20px] py-[16px] lg:rounded-[12px] lg:px-[28px] lg:py-[20px]">
|
|
10
|
-
<div className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
11
|
-
{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}
|
|
12
|
-
</div>
|
|
13
|
-
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 sm-top:mt-[6px] mt-[8px] lg:mt-[8px]">
|
|
14
|
-
{item.title}
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
const TimeContainer = ({ list, isFirst }: { list: TimeLineType[]; isFirst: boolean }) => {
|
|
20
|
-
const imgUrl = list[0].is_highest_court ? checkCircle : checkCircle2;
|
|
21
|
-
const color = list[0].is_highest_court ? 'text-subColor05' : 'text-mycaseMainColor';
|
|
22
|
-
const borderColor = list[0].is_highest_court ? 'border-subColor05' : 'border-mycaseMainColor';
|
|
23
|
-
return (
|
|
24
|
-
<>
|
|
25
|
-
<div className="sm-top:gap-[16px] flex flex-col gap-[14px] lg:gap-[13px]">
|
|
26
|
-
<div className="sm-top:gap-[12px] flex flex-row items-center gap-[8px]">
|
|
27
|
-
<Image
|
|
28
|
-
unoptimized
|
|
29
|
-
src={imgUrl}
|
|
30
|
-
alt="arrow"
|
|
31
|
-
width={24}
|
|
32
|
-
height={24}
|
|
33
|
-
className="sm-top:w-[20px] sm-top:h-[20px] h-[16px] w-[16px] lg:h-[24px] lg:w-[24px]"
|
|
34
|
-
/>
|
|
35
|
-
<p className={`body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 ${color}`}>
|
|
36
|
-
{list[0].title}
|
|
37
|
-
</p>
|
|
38
|
-
</div>
|
|
39
|
-
<div
|
|
40
|
-
className={
|
|
41
|
-
`sm-top:ml-[6px] sm-top:pl-[22px] ml-[8px] pl-[16px] lg:ml-[12px] lg:pl-[28px] ${borderColor} flex flex-col gap-[16px] ` +
|
|
42
|
-
`${isFirst ? '' : 'sm-top:border-l-[1.5px] border-l-[1px] border-solid lg:border-l-[2px] '}`
|
|
43
|
-
}
|
|
44
|
-
>
|
|
45
|
-
{list.map((item: any) => {
|
|
46
|
-
return <TimeBox key={item.idx} item={item} />;
|
|
47
|
-
})}
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</>
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const TimeLine = ({ timeLine, isLoading }: { timeLine: TimeLineType[][]; isLoading: boolean }) => {
|
|
55
|
-
return (
|
|
56
|
-
<CaseLayout
|
|
57
|
-
isMobilePadding={false}
|
|
58
|
-
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
59
|
-
innerClassName={
|
|
60
|
-
'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]'
|
|
61
|
-
}
|
|
62
|
-
>
|
|
63
|
-
<div className="flex flex-col gap-[16px]">
|
|
64
|
-
{timeLine.map((list, index) => {
|
|
65
|
-
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1} />;
|
|
66
|
-
})}
|
|
67
|
-
</div>
|
|
68
|
-
</CaseLayout>
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export default TimeLine;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Question } from '../../../_type/type';
|
|
2
|
-
declare const CaseInquiry: ({ myCaseQuestion, id, refetch, pageSize, totalLength, pageNumber, onChange }: {
|
|
3
|
-
myCaseQuestion: Question[];
|
|
4
|
-
id: string;
|
|
5
|
-
refetch: () => void;
|
|
6
|
-
pageSize: number;
|
|
7
|
-
totalLength: number;
|
|
8
|
-
pageNumber: number;
|
|
9
|
-
onChange: (pageNumber: number) => void;
|
|
10
|
-
}) => import("react").JSX.Element;
|
|
11
|
-
export default CaseInquiry;
|