@daeryun/dr_components 0.3.86 → 0.3.88
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/page/Login/LoginShareCheckContainer.jsx +7 -0
- package/dist/components/page/Login/LoginShareCheckContainer.tsx +10 -1
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +3 -1
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +24 -21
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +23 -21
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +7 -7
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +7 -7
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +6 -6
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +6 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +14 -14
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +14 -14
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +2 -4
- package/dist/components/page/MyCase/_actions/action.d.ts +12 -8
- package/dist/components/page/MyCase/_actions/action.js +24 -7
- package/dist/components/page/MyCase/_actions/action.ts +27 -8
- package/dist/components/page/MyCase/_component/CaseContainer.jsx +2 -2
- package/dist/components/page/MyCase/_component/CaseContainer.tsx +2 -2
- package/dist/components/page/MyCase/_fetchers/getContact.d.ts +4 -0
- package/dist/components/page/MyCase/_fetchers/getContact.js +32 -0
- package/dist/components/page/MyCase/_fetchers/getContact.ts +23 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import SubMenuButton from '../../_component/_button/SubMenuButton';
|
|
|
6
6
|
import HeaderLayout from '../../_component/_layout/HeaderLayout';
|
|
7
7
|
import DetailInfo from './../_component/DetailInfo';
|
|
8
8
|
import { useParams, useRouter, useSearchParams } from 'next/navigation';
|
|
9
|
-
import {
|
|
9
|
+
import { useActionGetDetailList, useActionGetMyCaseQuestion, useActionGetTimeLine } from '../../_actions/action';
|
|
10
10
|
import background from '../../../../../asset/images/myCase/background.webp';
|
|
11
11
|
import backgroundTb from '../../../../../asset/images/myCase/background_tb.webp';
|
|
12
12
|
import backgroundMo from '../../../../../asset/images/myCase/background_mo.webp';
|
|
@@ -24,11 +24,11 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
24
24
|
const { page, tap, subTap } = Object.fromEntries(searchParams.entries());
|
|
25
25
|
const pageNumber = page ? Number(page) : 1;
|
|
26
26
|
const [pageSize, setPageSize] = useState(3);
|
|
27
|
-
const { data: detailList, isLoading: detailListLoading } =
|
|
28
|
-
const { data: timeLine, isLoading: timeLineLoading } =
|
|
27
|
+
const { data: detailList, isLoading: detailListLoading } = useActionGetDetailList(id, jwt);
|
|
28
|
+
const { data: timeLine, isLoading: timeLineLoading } = useActionGetTimeLine(id, jwt);
|
|
29
29
|
// const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id as string, jwt);
|
|
30
30
|
// const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id as string, jwt);
|
|
31
|
-
const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } =
|
|
31
|
+
const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = useActionGetMyCaseQuestion(id, pageNumber, pageSize, jwt);
|
|
32
32
|
const handleOnChange = (pageNum) => {
|
|
33
33
|
router.push(`/mycase/${id}?page=${pageNum}`);
|
|
34
34
|
};
|
|
@@ -39,8 +39,8 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
39
39
|
<div className={'relative z-[1] '}>
|
|
40
40
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
41
41
|
<HeaderLayout>
|
|
42
|
-
<div className="sm-top:mt-[283px]
|
|
43
|
-
<div className="
|
|
42
|
+
<div className="mt-[210px] sm-top:mt-[283px] lg:mt-[302px] ">
|
|
43
|
+
<div className="flex items-center justify-center gap-[16px] max-[415px]:hidden sm-top:gap-[32px] lg:gap-[28px]">
|
|
44
44
|
<SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')}/>
|
|
45
45
|
<SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
|
|
46
46
|
{/* <SubMenuButton
|
|
@@ -73,7 +73,7 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
73
73
|
myFileList={myFileList?.data as FileList[]}
|
|
74
74
|
/>
|
|
75
75
|
)} */}
|
|
76
|
-
{selected === '계약정보' && <ContactInfo />}
|
|
76
|
+
{selected === '계약정보' && <ContactInfo id={id}/>}
|
|
77
77
|
{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}/>)}
|
|
78
78
|
</HeaderLayout>
|
|
79
79
|
</div>
|
|
@@ -11,7 +11,7 @@ import { useParams, usePathname, useRouter, useSearchParams } from 'next/navigat
|
|
|
11
11
|
import { useQuery } from 'react-query';
|
|
12
12
|
import getCase from '../../_fetchers/getCase';
|
|
13
13
|
import { DetailList, FetchType, FileList, Question, TimeLineType } from '../../_type/type';
|
|
14
|
-
import {
|
|
14
|
+
import { useActionGetDetailList, useActionGetMyCaseQuestion, useActionGetTimeLine } from '../../_actions/action';
|
|
15
15
|
import background from '../../../../../asset/images/myCase/background.webp';
|
|
16
16
|
import backgroundTb from '../../../../../asset/images/myCase/background_tb.webp';
|
|
17
17
|
import backgroundMo from '../../../../../asset/images/myCase/background_mo.webp';
|
|
@@ -31,15 +31,15 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
31
31
|
const pageNumber = page ? Number(page) : 1;
|
|
32
32
|
const [pageSize, setPageSize] = useState(3);
|
|
33
33
|
|
|
34
|
-
const { data: detailList, isLoading: detailListLoading } =
|
|
35
|
-
const { data: timeLine, isLoading: timeLineLoading } =
|
|
34
|
+
const { data: detailList, isLoading: detailListLoading } = useActionGetDetailList(id as string, jwt);
|
|
35
|
+
const { data: timeLine, isLoading: timeLineLoading } = useActionGetTimeLine(id as string, jwt);
|
|
36
36
|
// const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id as string, jwt);
|
|
37
37
|
// const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id as string, jwt);
|
|
38
38
|
const {
|
|
39
39
|
data: myCaseQuestion,
|
|
40
40
|
isLoading: myCaseQuestionLoading,
|
|
41
41
|
refetch: myCaseQuestionRefetch
|
|
42
|
-
} =
|
|
42
|
+
} = useActionGetMyCaseQuestion(id as string, pageNumber, pageSize, jwt);
|
|
43
43
|
const handleOnChange = (pageNum: number) => {
|
|
44
44
|
router.push(`/mycase/${id}?page=${pageNum}`);
|
|
45
45
|
};
|
|
@@ -59,8 +59,8 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
59
59
|
<div className={'relative z-[1] '}>
|
|
60
60
|
{/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
|
|
61
61
|
<HeaderLayout>
|
|
62
|
-
<div className="sm-top:mt-[283px]
|
|
63
|
-
<div className="
|
|
62
|
+
<div className="mt-[210px] sm-top:mt-[283px] lg:mt-[302px] ">
|
|
63
|
+
<div className="flex items-center justify-center gap-[16px] max-[415px]:hidden sm-top:gap-[32px] lg:gap-[28px]">
|
|
64
64
|
<SubMenuButton
|
|
65
65
|
title="사건 정보"
|
|
66
66
|
isSelected={selected === '사건 정보'}
|
|
@@ -136,7 +136,7 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
136
136
|
myFileList={myFileList?.data as FileList[]}
|
|
137
137
|
/>
|
|
138
138
|
)} */}
|
|
139
|
-
{selected === '계약정보' && <ContactInfo />}
|
|
139
|
+
{selected === '계약정보' && <ContactInfo id={id as string} />}
|
|
140
140
|
{selected === '사건문의' && (
|
|
141
141
|
<CaseInquiry
|
|
142
142
|
myCaseQuestion={myCaseQuestion?.list as unknown as Question[]}
|
|
@@ -5,25 +5,25 @@ import EmptyTable from '../../../_component/_empty/EmptyTable';
|
|
|
5
5
|
const Document = ({ courtFileList, myFileList }) => {
|
|
6
6
|
const [tap, setTap] = useState('my');
|
|
7
7
|
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]'}>
|
|
8
|
-
<div className="
|
|
9
|
-
<button onClick={() => setTap('my')} className={`h-full w-full transition-all duration-300 ${tap === 'my' ? '
|
|
8
|
+
<div className="flex h-[48px] w-full overflow-hidden rounded-[12px] bg-grayScale4 sm-top:h-[60px]">
|
|
9
|
+
<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'}`}>
|
|
10
10
|
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">나의제출문서</p>
|
|
11
11
|
</button>
|
|
12
|
-
<button onClick={() => setTap('court')} className={`h-full w-full transition-all duration-300 ${tap === 'court' ? '
|
|
12
|
+
<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'}`}>
|
|
13
13
|
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">법원제출문서</p>
|
|
14
14
|
</button>
|
|
15
15
|
</div>
|
|
16
16
|
<div className="mt-[16px] lg:mt-[20px]">
|
|
17
|
-
<p className="
|
|
17
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-black">
|
|
18
18
|
최근 제출순으로 조회됩니다.
|
|
19
19
|
</p>
|
|
20
20
|
</div>
|
|
21
21
|
<div className="mt-[20px] flex flex-col lg:mt-[24px] ">
|
|
22
22
|
{tap === 'my' && myFileList.length > 0
|
|
23
|
-
? myFileList.map((item, index) => <DocumentLine item={item} index={index}/>)
|
|
23
|
+
? myFileList.map((item, index) => <DocumentLine item={item} index={index} key={index}/>)
|
|
24
24
|
: tap === 'my' && <EmptyTable tap="file" subTap={0}/>}
|
|
25
25
|
{tap === 'court' && courtFileList.length > 0
|
|
26
|
-
? courtFileList.map((item, index) => <DocumentLine item={item} index={index}/>)
|
|
26
|
+
? courtFileList.map((item, index) => <DocumentLine item={item} index={index} key={index}/>)
|
|
27
27
|
: tap === 'court' && <EmptyTable tap="file" subTap={0}/>}
|
|
28
28
|
</div>
|
|
29
29
|
</CaseLayout>);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
3
|
|
|
4
|
-
import { actionGetCourtFileList } from '../../../_actions/action';
|
|
5
4
|
import { FileList } from '../../../_type/type';
|
|
6
5
|
import Image from 'next/image';
|
|
7
6
|
import dayjs from 'dayjs';
|
|
@@ -19,31 +18,31 @@ const Document = ({ courtFileList, myFileList }: { courtFileList: FileList[]; my
|
|
|
19
18
|
'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]'
|
|
20
19
|
}
|
|
21
20
|
>
|
|
22
|
-
<div className="
|
|
21
|
+
<div className="flex h-[48px] w-full overflow-hidden rounded-[12px] bg-grayScale4 sm-top:h-[60px]">
|
|
23
22
|
<button
|
|
24
23
|
onClick={() => setTap('my')}
|
|
25
|
-
className={`h-full w-full transition-all duration-300 ${tap === 'my' ? '
|
|
24
|
+
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'}`}
|
|
26
25
|
>
|
|
27
26
|
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">나의제출문서</p>
|
|
28
27
|
</button>
|
|
29
28
|
<button
|
|
30
29
|
onClick={() => setTap('court')}
|
|
31
|
-
className={`h-full w-full transition-all duration-300 ${tap === 'court' ? '
|
|
30
|
+
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'}`}
|
|
32
31
|
>
|
|
33
32
|
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">법원제출문서</p>
|
|
34
33
|
</button>
|
|
35
34
|
</div>
|
|
36
35
|
<div className="mt-[16px] lg:mt-[20px]">
|
|
37
|
-
<p className="
|
|
36
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-black">
|
|
38
37
|
최근 제출순으로 조회됩니다.
|
|
39
38
|
</p>
|
|
40
39
|
</div>
|
|
41
40
|
<div className="mt-[20px] flex flex-col lg:mt-[24px] ">
|
|
42
41
|
{tap === 'my' && myFileList.length > 0
|
|
43
|
-
? myFileList.map((item, index) => <DocumentLine item={item} index={index} />)
|
|
42
|
+
? myFileList.map((item, index) => <DocumentLine item={item} index={index} key={index} />)
|
|
44
43
|
: tap === 'my' && <EmptyTable tap="file" subTap={0} />}
|
|
45
44
|
{tap === 'court' && courtFileList.length > 0
|
|
46
|
-
? courtFileList.map((item, index) => <DocumentLine item={item} index={index} />)
|
|
45
|
+
? courtFileList.map((item, index) => <DocumentLine item={item} index={index} key={index} />)
|
|
47
46
|
: tap === 'court' && <EmptyTable tap="file" subTap={0} />}
|
|
48
47
|
</div>
|
|
49
48
|
</CaseLayout>
|
|
@@ -11,7 +11,7 @@ import Image from 'next/image';
|
|
|
11
11
|
import ModalContainer from './ModalCotainer';
|
|
12
12
|
import TextArea from '../_textarea/TextArea';
|
|
13
13
|
import { useState } from 'react';
|
|
14
|
-
import {
|
|
14
|
+
import { useActionPostMyCaseQuestion } from '../../../_actions/action';
|
|
15
15
|
import Loading from '../../../_component/_loading/Loading';
|
|
16
16
|
import CaseInquiryConfirmModal from './CaseInquiryConfirmModal';
|
|
17
17
|
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
@@ -19,7 +19,7 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
19
19
|
const [value, setValue] = useState('');
|
|
20
20
|
const [isCheck, setIsCheck] = useState(false);
|
|
21
21
|
const [isOpenConfirm, setIsOpenConfirm] = useState(false);
|
|
22
|
-
const { mutateAsync, isLoading } =
|
|
22
|
+
const { mutateAsync, isLoading } = useActionPostMyCaseQuestion(id, value);
|
|
23
23
|
// console.log(isLoading);
|
|
24
24
|
return (<>
|
|
25
25
|
<ModalContainer isOpen={isOpen} onClose={() => {
|
|
@@ -27,7 +27,7 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
27
27
|
setIsCheck(false);
|
|
28
28
|
onClose();
|
|
29
29
|
}}>
|
|
30
|
-
<div className="
|
|
30
|
+
<div className="absolute h-fit w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] lg:w-full lg:max-w-[1000px] " onClick={e => e.stopPropagation()}>
|
|
31
31
|
<div className="flex flex-row items-center justify-between">
|
|
32
32
|
<p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">
|
|
33
33
|
사건문의 작성
|
|
@@ -36,13 +36,13 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
36
36
|
setValue('');
|
|
37
37
|
setIsCheck(false);
|
|
38
38
|
onClose();
|
|
39
|
-
}} className="sm-top:h-[20px] sm-top:w-[20px]
|
|
39
|
+
}} className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"/>
|
|
40
40
|
</div>
|
|
41
|
-
<div className="sm-top:mt-[20px]
|
|
42
|
-
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 max-sm-top:hidden
|
|
41
|
+
<div className="mt-[12px] sm-top:mt-[20px]">
|
|
42
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-black max-sm-top:hidden">
|
|
43
43
|
본 사건에 대해 궁금하신 점이 있다면 작성해 주세요.
|
|
44
44
|
</p>
|
|
45
|
-
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 max-sm-top:hidden
|
|
45
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-black max-sm-top:hidden">
|
|
46
46
|
담당자가 확인하여 성심껏 답변해 드리겠습니다!
|
|
47
47
|
</p>
|
|
48
48
|
<p className="body_large2_mo sm-top:hidden">
|
|
@@ -51,11 +51,11 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
51
51
|
</p>
|
|
52
52
|
</div>
|
|
53
53
|
<div className="mt-[16px] flex flex-row items-center justify-between">
|
|
54
|
-
<div className="
|
|
55
|
-
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 sm-top:leading-[25px]
|
|
54
|
+
<div className="flex flex-row items-center justify-center gap-[4px] sm-top:gap-[8px]">
|
|
55
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 leading-[20px] text-black sm-top:leading-[25px] lg:leading-[30px]">
|
|
56
56
|
문의내용
|
|
57
57
|
</p>
|
|
58
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3 sm-top:leading-[23px]
|
|
58
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 leading-[18px] text-grayScale3 sm-top:leading-[23px] lg:leading-[25px]">
|
|
59
59
|
(30자 이상<span className="text-mycaseMainColor"> *</span>)
|
|
60
60
|
</p>
|
|
61
61
|
</div>
|
|
@@ -65,7 +65,7 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
65
65
|
</p>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
<div className="sm-top:mt-[15px]
|
|
68
|
+
<div className="mt-[12px] sm-top:mt-[15px] lg:mt-[18px]">
|
|
69
69
|
<TextArea placeholder="문의내용을 입력해 주세요." value={value} onChange={e => setValue(e.target.value)} isCheck={isCheck}/>
|
|
70
70
|
</div>
|
|
71
71
|
{isCheck && (<div className=" mt-[8px]">
|
|
@@ -78,9 +78,9 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
78
78
|
<Loading />
|
|
79
79
|
</div>) : (<></>)}
|
|
80
80
|
<div className={`${isCheck
|
|
81
|
-
? 'sm-top:mt-[20px]
|
|
82
|
-
: 'sm-top:mt-[55px]
|
|
83
|
-
<button className={`
|
|
81
|
+
? 'mt-[21px] sm-top:mt-[20px] lg:mt-[16px]'
|
|
82
|
+
: 'mt-[50px] sm-top:mt-[55px] lg:mt-[53px]'}`}>
|
|
83
|
+
<button className={`flex h-[48px] w-full items-center justify-center rounded-[4px] sm-top:h-[60px] sm-top:w-full sm-top:rounded-[8px] lg:h-[72px] lg:w-[896px] lg:rounded-[16px] ${value.length >= 30 ? ' bg-grayScale1 text-white' : 'bg-grayScale6 text-grayScale3 '}`} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
84
84
|
if (value.length >= 30) {
|
|
85
85
|
setIsCheck(false);
|
|
86
86
|
const result = yield mutateAsync();
|
|
@@ -2,7 +2,7 @@ import Image from 'next/image';
|
|
|
2
2
|
import ModalContainer from './ModalCotainer';
|
|
3
3
|
import TextArea from '../_textarea/TextArea';
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { useActionPostMyCaseQuestion } from '../../../_actions/action';
|
|
6
6
|
import Loading from '../../../_component/_loading/Loading';
|
|
7
7
|
import CaseInquiryConfirmModal from './CaseInquiryConfirmModal';
|
|
8
8
|
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
@@ -21,7 +21,7 @@ const CaseInquiryAddModal = ({
|
|
|
21
21
|
const [isCheck, setIsCheck] = useState(false);
|
|
22
22
|
const [isOpenConfirm, setIsOpenConfirm] = useState(false);
|
|
23
23
|
|
|
24
|
-
const { mutateAsync, isLoading } =
|
|
24
|
+
const { mutateAsync, isLoading } = useActionPostMyCaseQuestion(id, value);
|
|
25
25
|
// console.log(isLoading);
|
|
26
26
|
return (
|
|
27
27
|
<>
|
|
@@ -34,7 +34,7 @@ const CaseInquiryAddModal = ({
|
|
|
34
34
|
}}
|
|
35
35
|
>
|
|
36
36
|
<div
|
|
37
|
-
className="
|
|
37
|
+
className="absolute h-fit w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] lg:w-full lg:max-w-[1000px] "
|
|
38
38
|
onClick={e => e.stopPropagation()}
|
|
39
39
|
>
|
|
40
40
|
<div className="flex flex-row items-center justify-between">
|
|
@@ -51,14 +51,14 @@ const CaseInquiryAddModal = ({
|
|
|
51
51
|
setIsCheck(false);
|
|
52
52
|
onClose();
|
|
53
53
|
}}
|
|
54
|
-
className="sm-top:h-[20px] sm-top:w-[20px]
|
|
54
|
+
className="h-[16px] w-[16px] cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
|
|
55
55
|
/>
|
|
56
56
|
</div>
|
|
57
|
-
<div className="sm-top:mt-[20px]
|
|
58
|
-
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 max-sm-top:hidden
|
|
57
|
+
<div className="mt-[12px] sm-top:mt-[20px]">
|
|
58
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-black max-sm-top:hidden">
|
|
59
59
|
본 사건에 대해 궁금하신 점이 있다면 작성해 주세요.
|
|
60
60
|
</p>
|
|
61
|
-
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 max-sm-top:hidden
|
|
61
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-black max-sm-top:hidden">
|
|
62
62
|
담당자가 확인하여 성심껏 답변해 드리겠습니다!
|
|
63
63
|
</p>
|
|
64
64
|
<p className="body_large2_mo sm-top:hidden">
|
|
@@ -67,11 +67,11 @@ const CaseInquiryAddModal = ({
|
|
|
67
67
|
</p>
|
|
68
68
|
</div>
|
|
69
69
|
<div className="mt-[16px] flex flex-row items-center justify-between">
|
|
70
|
-
<div className="
|
|
71
|
-
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 sm-top:leading-[25px]
|
|
70
|
+
<div className="flex flex-row items-center justify-center gap-[4px] sm-top:gap-[8px]">
|
|
71
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 leading-[20px] text-black sm-top:leading-[25px] lg:leading-[30px]">
|
|
72
72
|
문의내용
|
|
73
73
|
</p>
|
|
74
|
-
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3 sm-top:leading-[23px]
|
|
74
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 leading-[18px] text-grayScale3 sm-top:leading-[23px] lg:leading-[25px]">
|
|
75
75
|
(30자 이상<span className="text-mycaseMainColor"> *</span>)
|
|
76
76
|
</p>
|
|
77
77
|
</div>
|
|
@@ -81,7 +81,7 @@ const CaseInquiryAddModal = ({
|
|
|
81
81
|
</p>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
|
-
<div className="sm-top:mt-[15px]
|
|
84
|
+
<div className="mt-[12px] sm-top:mt-[15px] lg:mt-[18px]">
|
|
85
85
|
<TextArea
|
|
86
86
|
placeholder="문의내용을 입력해 주세요."
|
|
87
87
|
value={value}
|
|
@@ -107,12 +107,12 @@ const CaseInquiryAddModal = ({
|
|
|
107
107
|
<div
|
|
108
108
|
className={`${
|
|
109
109
|
isCheck
|
|
110
|
-
? 'sm-top:mt-[20px]
|
|
111
|
-
: 'sm-top:mt-[55px]
|
|
110
|
+
? 'mt-[21px] sm-top:mt-[20px] lg:mt-[16px]'
|
|
111
|
+
: 'mt-[50px] sm-top:mt-[55px] lg:mt-[53px]'
|
|
112
112
|
}`}
|
|
113
113
|
>
|
|
114
114
|
<button
|
|
115
|
-
className={`
|
|
115
|
+
className={`flex h-[48px] w-full items-center justify-center rounded-[4px] sm-top:h-[60px] sm-top:w-full sm-top:rounded-[8px] lg:h-[72px] lg:w-[896px] lg:rounded-[16px] ${
|
|
116
116
|
value.length >= 30 ? ' bg-grayScale1 text-white' : 'bg-grayScale6 text-grayScale3 '
|
|
117
117
|
}`}
|
|
118
118
|
onClick={async () => {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import ModalContainer from './ModalCotainer';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
|
-
|
|
6
|
-
import Loading from '../../../_component/_loading/Loading';
|
|
7
|
-
import CaseInquiryConfirmModal from './CaseInquiryConfirmModal';
|
|
5
|
+
|
|
8
6
|
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
9
7
|
|
|
10
8
|
const ContractModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FetchType, DetailList, TimeLineType, FileList, Question } from '../_type/type';
|
|
2
|
-
export declare const
|
|
1
|
+
import { FetchType, DetailList, TimeLineType, FileList, Question, PaymentList } from '../_type/type';
|
|
2
|
+
export declare const useActionGetCaseList: ({ tapState, state, pageNumber, pageSize, jwt }: {
|
|
3
3
|
tapState: string;
|
|
4
4
|
state: "ongoing" | "closed";
|
|
5
5
|
pageNumber: number;
|
|
@@ -9,28 +9,32 @@ export declare const actionGetCaseList: ({ tapState, state, pageNumber, pageSize
|
|
|
9
9
|
data: any;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const useActionGetDetailList: (id: string, jwt?: string) => {
|
|
13
13
|
data: FetchType<DetailList> | undefined;
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const useActionGetTimeLine: (id: string, jwt?: string) => {
|
|
17
17
|
data: FetchType<TimeLineType> | undefined;
|
|
18
18
|
isLoading: boolean;
|
|
19
19
|
};
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const useActionGetCourtFileList: (id: string, jwt?: string) => {
|
|
21
21
|
data: FetchType<FileList[]> | undefined;
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const
|
|
24
|
+
export declare const useActionGetMyFileList: (id: string, jwt?: string) => {
|
|
25
25
|
data: FetchType<FileList[]> | undefined;
|
|
26
26
|
isLoading: boolean;
|
|
27
27
|
};
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const useActionGetMyCaseQuestion: (id: string, page: number, pageSize: number, jwt?: string) => {
|
|
29
29
|
data: FetchType<Question[]> | undefined;
|
|
30
30
|
isLoading: boolean;
|
|
31
31
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<FetchType<Question[]>, Error>>;
|
|
32
32
|
};
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const useActionPostMyCaseQuestion: (id: string, content: string, jwt?: string) => {
|
|
34
34
|
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FetchType<Question[]>, Error, void, unknown>;
|
|
35
35
|
isLoading: boolean;
|
|
36
36
|
};
|
|
37
|
+
export declare const useActionGetContact: (id: string) => {
|
|
38
|
+
data: FetchType<PaymentList> | undefined;
|
|
39
|
+
isLoading: boolean;
|
|
40
|
+
};
|
|
@@ -15,9 +15,10 @@ import getMyFileList from '../_fetchers/getMyFileList';
|
|
|
15
15
|
import getMyCaseQuestion from '../_fetchers/getMyCaseQuestion';
|
|
16
16
|
import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
|
|
17
17
|
import getCaseList from '../_fetchers/getCaseList';
|
|
18
|
+
import getContact from '../_fetchers/getContact';
|
|
18
19
|
const jwt2 = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
|
|
19
20
|
// 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsImVtYWlsIjoiNjAzMDgwNEBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzQwNDQ2Nzg1LCJleHAiOjE3NDA0ODI3ODV9.v_d7htci4fjLA5MqBXWxUqyNjsAm2GEcdRBO5se-DB8'; //빈거
|
|
20
|
-
export const
|
|
21
|
+
export const useActionGetCaseList = ({ tapState, state, pageNumber, pageSize, jwt }) => {
|
|
21
22
|
const { data, isLoading } = useQuery({
|
|
22
23
|
queryKey: ['case', tapState, pageNumber, pageSize, state],
|
|
23
24
|
queryFn: () => getCaseList({
|
|
@@ -35,7 +36,7 @@ export const actionGetCaseList = ({ tapState, state, pageNumber, pageSize, jwt }
|
|
|
35
36
|
});
|
|
36
37
|
return { data, isLoading };
|
|
37
38
|
};
|
|
38
|
-
export const
|
|
39
|
+
export const useActionGetDetailList = (id, jwt) => {
|
|
39
40
|
const { data, isLoading } = useQuery({
|
|
40
41
|
queryKey: ['case', id],
|
|
41
42
|
queryFn: () => getCase({
|
|
@@ -55,7 +56,7 @@ export const actionGetDetailList = (id, jwt) => {
|
|
|
55
56
|
});
|
|
56
57
|
return { data, isLoading };
|
|
57
58
|
};
|
|
58
|
-
export const
|
|
59
|
+
export const useActionGetTimeLine = (id, jwt) => {
|
|
59
60
|
const { data, isLoading } = useQuery({
|
|
60
61
|
queryKey: ['case', 'timeline', id],
|
|
61
62
|
queryFn: () => getTimeLine({
|
|
@@ -72,7 +73,7 @@ export const actionGetTimeLine = (id, jwt) => {
|
|
|
72
73
|
});
|
|
73
74
|
return { data, isLoading };
|
|
74
75
|
};
|
|
75
|
-
export const
|
|
76
|
+
export const useActionGetCourtFileList = (id, jwt) => {
|
|
76
77
|
const { data, isLoading } = useQuery({
|
|
77
78
|
queryKey: ['case', 'courtFileList', id],
|
|
78
79
|
queryFn: () => getCourtFileList({
|
|
@@ -89,7 +90,7 @@ export const actionGetCourtFileList = (id, jwt) => {
|
|
|
89
90
|
});
|
|
90
91
|
return { data, isLoading };
|
|
91
92
|
};
|
|
92
|
-
export const
|
|
93
|
+
export const useActionGetMyFileList = (id, jwt) => {
|
|
93
94
|
const { data, isLoading } = useQuery({
|
|
94
95
|
queryKey: ['case', 'myFileList', id],
|
|
95
96
|
queryFn: () => getMyFileList({
|
|
@@ -106,7 +107,7 @@ export const actionGetMyFileList = (id, jwt) => {
|
|
|
106
107
|
});
|
|
107
108
|
return { data, isLoading };
|
|
108
109
|
};
|
|
109
|
-
export const
|
|
110
|
+
export const useActionGetMyCaseQuestion = (id, page, pageSize, jwt) => {
|
|
110
111
|
const { data, isLoading, refetch } = useQuery({
|
|
111
112
|
queryKey: ['case', 'myCaseQuestion', id, page, pageSize],
|
|
112
113
|
queryFn: () => getMyCaseQuestion({
|
|
@@ -125,7 +126,7 @@ export const actionGetMyCaseQuestion = (id, page, pageSize, jwt) => {
|
|
|
125
126
|
});
|
|
126
127
|
return { data, isLoading, refetch };
|
|
127
128
|
};
|
|
128
|
-
export const
|
|
129
|
+
export const useActionPostMyCaseQuestion = (id, content, jwt) => {
|
|
129
130
|
const { mutateAsync, status } = useMutation({
|
|
130
131
|
mutationFn: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
131
132
|
return yield addMyCaseQuestion({
|
|
@@ -142,3 +143,19 @@ export const actionPostMyCaseQuestion = (id, content, jwt) => {
|
|
|
142
143
|
const isLoading = status === 'pending';
|
|
143
144
|
return { mutateAsync, isLoading };
|
|
144
145
|
};
|
|
146
|
+
export const useActionGetContact = (id) => {
|
|
147
|
+
const { data, isLoading } = useQuery({
|
|
148
|
+
queryKey: ['case', 'contact', id],
|
|
149
|
+
queryFn: () => getContact({
|
|
150
|
+
id: id
|
|
151
|
+
}),
|
|
152
|
+
gcTime: 0,
|
|
153
|
+
staleTime: 0,
|
|
154
|
+
enabled: !!id
|
|
155
|
+
// onSuccess: res => {},
|
|
156
|
+
// onError: error => {
|
|
157
|
+
// console.log(error);
|
|
158
|
+
// }
|
|
159
|
+
});
|
|
160
|
+
return { data, isLoading };
|
|
161
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMutation, useQuery } from '@tanstack/react-query';
|
|
2
|
-
import { FetchType, DetailList, TimeLineType, FileList, Question } from '../_type/type';
|
|
2
|
+
import { FetchType, DetailList, TimeLineType, FileList, Question, PaymentList } from '../_type/type';
|
|
3
3
|
import getCase from '../_fetchers/getCase';
|
|
4
4
|
import getTimeLine from '../_fetchers/getTimeLine';
|
|
5
5
|
|
|
@@ -8,12 +8,13 @@ import getMyFileList from '../_fetchers/getMyFileList';
|
|
|
8
8
|
import getMyCaseQuestion from '../_fetchers/getMyCaseQuestion';
|
|
9
9
|
import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
|
|
10
10
|
import getCaseList from '../_fetchers/getCaseList';
|
|
11
|
+
import getContact from '../_fetchers/getContact';
|
|
11
12
|
|
|
12
13
|
const jwt2 =
|
|
13
14
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
|
|
14
15
|
// 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsImVtYWlsIjoiNjAzMDgwNEBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzQwNDQ2Nzg1LCJleHAiOjE3NDA0ODI3ODV9.v_d7htci4fjLA5MqBXWxUqyNjsAm2GEcdRBO5se-DB8'; //빈거
|
|
15
16
|
|
|
16
|
-
export const
|
|
17
|
+
export const useActionGetCaseList = ({
|
|
17
18
|
tapState,
|
|
18
19
|
state,
|
|
19
20
|
pageNumber,
|
|
@@ -46,7 +47,7 @@ export const actionGetCaseList = ({
|
|
|
46
47
|
return { data, isLoading };
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
export const
|
|
50
|
+
export const useActionGetDetailList = (id: string, jwt?: string) => {
|
|
50
51
|
const { data, isLoading } = useQuery<FetchType<DetailList>>({
|
|
51
52
|
queryKey: ['case', id],
|
|
52
53
|
queryFn: () =>
|
|
@@ -68,7 +69,7 @@ export const actionGetDetailList = (id: string, jwt?: string) => {
|
|
|
68
69
|
return { data, isLoading };
|
|
69
70
|
};
|
|
70
71
|
|
|
71
|
-
export const
|
|
72
|
+
export const useActionGetTimeLine = (id: string, jwt?: string) => {
|
|
72
73
|
const { data, isLoading } = useQuery<FetchType<TimeLineType>>({
|
|
73
74
|
queryKey: ['case', 'timeline', id],
|
|
74
75
|
queryFn: () =>
|
|
@@ -87,7 +88,7 @@ export const actionGetTimeLine = (id: string, jwt?: string) => {
|
|
|
87
88
|
return { data, isLoading };
|
|
88
89
|
};
|
|
89
90
|
|
|
90
|
-
export const
|
|
91
|
+
export const useActionGetCourtFileList = (id: string, jwt?: string) => {
|
|
91
92
|
const { data, isLoading } = useQuery<FetchType<FileList[]>>({
|
|
92
93
|
queryKey: ['case', 'courtFileList', id],
|
|
93
94
|
queryFn: () =>
|
|
@@ -106,7 +107,7 @@ export const actionGetCourtFileList = (id: string, jwt?: string) => {
|
|
|
106
107
|
return { data, isLoading };
|
|
107
108
|
};
|
|
108
109
|
|
|
109
|
-
export const
|
|
110
|
+
export const useActionGetMyFileList = (id: string, jwt?: string) => {
|
|
110
111
|
const { data, isLoading } = useQuery<FetchType<FileList[]>>({
|
|
111
112
|
queryKey: ['case', 'myFileList', id],
|
|
112
113
|
queryFn: () =>
|
|
@@ -125,7 +126,7 @@ export const actionGetMyFileList = (id: string, jwt?: string) => {
|
|
|
125
126
|
return { data, isLoading };
|
|
126
127
|
};
|
|
127
128
|
|
|
128
|
-
export const
|
|
129
|
+
export const useActionGetMyCaseQuestion = (id: string, page: number, pageSize: number, jwt?: string) => {
|
|
129
130
|
const { data, isLoading, refetch } = useQuery<FetchType<Question[]>>({
|
|
130
131
|
queryKey: ['case', 'myCaseQuestion', id, page, pageSize],
|
|
131
132
|
queryFn: () =>
|
|
@@ -146,7 +147,7 @@ export const actionGetMyCaseQuestion = (id: string, page: number, pageSize: numb
|
|
|
146
147
|
return { data, isLoading, refetch };
|
|
147
148
|
};
|
|
148
149
|
|
|
149
|
-
export const
|
|
150
|
+
export const useActionPostMyCaseQuestion = (id: string, content: string, jwt?: string) => {
|
|
150
151
|
const { mutateAsync, status } = useMutation<FetchType<Question[]>>({
|
|
151
152
|
mutationFn: async () =>
|
|
152
153
|
await addMyCaseQuestion({
|
|
@@ -164,3 +165,21 @@ export const actionPostMyCaseQuestion = (id: string, content: string, jwt?: stri
|
|
|
164
165
|
const isLoading = status === 'pending';
|
|
165
166
|
return { mutateAsync, isLoading };
|
|
166
167
|
};
|
|
168
|
+
|
|
169
|
+
export const useActionGetContact = (id: string) => {
|
|
170
|
+
const { data, isLoading } = useQuery<FetchType<PaymentList>>({
|
|
171
|
+
queryKey: ['case', 'contact', id],
|
|
172
|
+
queryFn: () =>
|
|
173
|
+
getContact({
|
|
174
|
+
id: id as string
|
|
175
|
+
}),
|
|
176
|
+
gcTime: 0,
|
|
177
|
+
staleTime: 0,
|
|
178
|
+
enabled: !!id
|
|
179
|
+
// onSuccess: res => {},
|
|
180
|
+
// onError: error => {
|
|
181
|
+
// console.log(error);
|
|
182
|
+
// }
|
|
183
|
+
});
|
|
184
|
+
return { data, isLoading };
|
|
185
|
+
};
|
|
@@ -3,7 +3,7 @@ import CaseLayout from './_layout/CaseLayout';
|
|
|
3
3
|
import EmptyTable from './_empty/EmptyTable';
|
|
4
4
|
import { useRouter, useSearchParams } from 'next/navigation';
|
|
5
5
|
import Loading from './_loading/Loading';
|
|
6
|
-
import {
|
|
6
|
+
import { useActionGetCaseList } from '../_actions/action';
|
|
7
7
|
import CaseTableMo from './_table/CaseTableMo';
|
|
8
8
|
const CaseTap = ({ title, type, tap, setTap }) => {
|
|
9
9
|
return (<button onClick={() => {
|
|
@@ -33,7 +33,7 @@ const CaseContainer = ({ jwt }) => {
|
|
|
33
33
|
// const handleOnSubTap = (subTap: string) => {
|
|
34
34
|
// router.push(`/mycase?page=1&tap=${tapState}&subTap=${subTap}`);
|
|
35
35
|
// };
|
|
36
|
-
const { data, isLoading } =
|
|
36
|
+
const { data, isLoading } = useActionGetCaseList({
|
|
37
37
|
tapState,
|
|
38
38
|
state: tapState === 'ongoing' ? 'ongoing' : 'closed',
|
|
39
39
|
pageNumber,
|
|
@@ -8,7 +8,7 @@ import { Case } from '../_type/type';
|
|
|
8
8
|
import EmptyTable from './_empty/EmptyTable';
|
|
9
9
|
import { useRouter, useSearchParams } from 'next/navigation';
|
|
10
10
|
import Loading from './_loading/Loading';
|
|
11
|
-
import {
|
|
11
|
+
import { useActionGetCaseList } from '../_actions/action';
|
|
12
12
|
import CaseTabSwiper from './_table/CaseTabSwiper';
|
|
13
13
|
import CaseTableMo from './_table/CaseTableMo';
|
|
14
14
|
|
|
@@ -61,7 +61,7 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
61
61
|
// router.push(`/mycase?page=1&tap=${tapState}&subTap=${subTap}`);
|
|
62
62
|
// };
|
|
63
63
|
|
|
64
|
-
const { data, isLoading } =
|
|
64
|
+
const { data, isLoading } = useActionGetCaseList({
|
|
65
65
|
tapState,
|
|
66
66
|
state: tapState === 'ongoing' ? 'ongoing' : 'closed',
|
|
67
67
|
pageNumber,
|