@daeryun/dr_components 0.5.79 → 0.5.81
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/MyCaseDetailPageContainer.jsx +2 -2
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +7 -2
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +1 -1
- package/dist/components/page/MyCase/_actions/action.d.ts +1 -0
- package/dist/components/page/MyCase/_actions/action.js +2 -2
- package/dist/components/page/MyCase/_actions/action.ts +2 -2
- package/dist/styles/globals.css +12 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
27
27
|
const { data: detailList, isLoading: detailListLoading } = useActionGetDetailList(id, jwt);
|
|
28
28
|
const { data: timeLine, isLoading: timeLineLoading } = useActionGetTimeLine(id, jwt);
|
|
29
29
|
const { data: courtFileList, isLoading: courtFileListLoading } = useActionGetCourtFileList(id, jwt);
|
|
30
|
-
const { data: myFileList, isLoading: myFileListLoading } = useActionGetMyFileList(id, jwt);
|
|
30
|
+
const { data: myFileList, isLoading: myFileListLoading, refetch: myFileListRefetch } = useActionGetMyFileList(id, jwt);
|
|
31
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}`);
|
|
@@ -59,7 +59,7 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
|
|
|
59
59
|
</div>
|
|
60
60
|
{selected === '사건 정보' && (<DetailInfo detailList={detailList === null || detailList === void 0 ? void 0 : detailList.data} isLoading={detailListLoading}/>)}
|
|
61
61
|
{selected === '사건 타임라인' && (<TimeLine timeLine={timeLine === null || timeLine === void 0 ? void 0 : timeLine.list} isLoading={timeLineLoading}/>)}
|
|
62
|
-
{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={
|
|
62
|
+
{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}/>)}
|
|
63
63
|
{selected === '계약정보' && <ContactInfo id={id}/>}
|
|
64
64
|
{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}/>)}
|
|
65
65
|
</HeaderLayout>
|
|
@@ -40,7 +40,12 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
40
40
|
const { data: detailList, isLoading: detailListLoading } = useActionGetDetailList(id as string, jwt);
|
|
41
41
|
const { data: timeLine, isLoading: timeLineLoading } = useActionGetTimeLine(id as string, jwt);
|
|
42
42
|
const { data: courtFileList, isLoading: courtFileListLoading } = useActionGetCourtFileList(id as string, jwt);
|
|
43
|
-
const {
|
|
43
|
+
const {
|
|
44
|
+
data: myFileList,
|
|
45
|
+
isLoading: myFileListLoading,
|
|
46
|
+
refetch: myFileListRefetch
|
|
47
|
+
} = useActionGetMyFileList(id as string, jwt);
|
|
48
|
+
|
|
44
49
|
const {
|
|
45
50
|
data: myCaseQuestion,
|
|
46
51
|
isLoading: myCaseQuestionLoading,
|
|
@@ -142,7 +147,7 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
|
142
147
|
courtFileList={courtFileList?.data as FileList[]}
|
|
143
148
|
myFileList={myFileList?.data as FileList[]}
|
|
144
149
|
id={id as string}
|
|
145
|
-
refetch={
|
|
150
|
+
refetch={myFileListRefetch}
|
|
146
151
|
/>
|
|
147
152
|
)}
|
|
148
153
|
{selected === '계약정보' && <ContactInfo id={id as string} />}
|
|
@@ -27,7 +27,7 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
|
|
|
27
27
|
setIsCheck(false);
|
|
28
28
|
onClose();
|
|
29
29
|
}}>
|
|
30
|
-
<div className="absolute h-fit w-[calc(100%-40px)] overflow-y-hidden 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()}>
|
|
30
|
+
<div className="absolute h-fit w-[calc(100%-40px)] overflow-y-hidden 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:h-[calc(100vh-100px)] lg:max-h-[1000px] lg:w-full lg:max-w-[1000px] lg:overflow-y-auto " 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
|
사건문의 작성
|
|
@@ -34,7 +34,7 @@ const CaseInquiryAddModal = ({
|
|
|
34
34
|
}}
|
|
35
35
|
>
|
|
36
36
|
<div
|
|
37
|
-
className="absolute h-fit w-[calc(100%-40px)] overflow-y-hidden 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] "
|
|
37
|
+
className="absolute h-fit w-[calc(100%-40px)] overflow-y-hidden 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:h-[calc(100vh-100px)] lg:max-h-[1000px] lg:w-full lg:max-w-[1000px] lg:overflow-y-auto "
|
|
38
38
|
onClick={e => e.stopPropagation()}
|
|
39
39
|
>
|
|
40
40
|
<div className="flex flex-row items-center justify-between">
|
|
@@ -22,6 +22,7 @@ export declare const useActionGetCourtFileList: (id: string, jwt?: string) => {
|
|
|
22
22
|
export declare const useActionGetMyFileList: (id: string, jwt?: string) => {
|
|
23
23
|
data: FetchType<FileList[]> | undefined;
|
|
24
24
|
isLoading: boolean;
|
|
25
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<FetchType<FileList[]>, Error>>;
|
|
25
26
|
};
|
|
26
27
|
export declare const useActionGetMyCaseQuestion: (id: string, page: number, pageSize: number, jwt?: string) => {
|
|
27
28
|
data: FetchType<Question[]> | undefined;
|
|
@@ -96,7 +96,7 @@ export const useActionGetCourtFileList = (id, jwt) => {
|
|
|
96
96
|
return { data, isLoading };
|
|
97
97
|
};
|
|
98
98
|
export const useActionGetMyFileList = (id, jwt) => {
|
|
99
|
-
const { data, isLoading } = useQuery({
|
|
99
|
+
const { data, isLoading, refetch } = useQuery({
|
|
100
100
|
queryKey: ['case', 'myFileList', id],
|
|
101
101
|
queryFn: () => getMyFileList({
|
|
102
102
|
jwt: jwt ? jwt : jwt2,
|
|
@@ -110,7 +110,7 @@ export const useActionGetMyFileList = (id, jwt) => {
|
|
|
110
110
|
// console.log(error);
|
|
111
111
|
// }
|
|
112
112
|
});
|
|
113
|
-
return { data, isLoading };
|
|
113
|
+
return { data, isLoading, refetch };
|
|
114
114
|
};
|
|
115
115
|
export const useActionGetMyCaseQuestion = (id, page, pageSize, jwt) => {
|
|
116
116
|
const { data, isLoading, refetch } = useQuery({
|
|
@@ -109,7 +109,7 @@ export const useActionGetCourtFileList = (id: string, jwt?: string) => {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
export const useActionGetMyFileList = (id: string, jwt?: string) => {
|
|
112
|
-
const { data, isLoading } = useQuery<FetchType<FileList[]>>({
|
|
112
|
+
const { data, isLoading, refetch } = useQuery<FetchType<FileList[]>>({
|
|
113
113
|
queryKey: ['case', 'myFileList', id],
|
|
114
114
|
queryFn: () =>
|
|
115
115
|
getMyFileList({
|
|
@@ -124,7 +124,7 @@ export const useActionGetMyFileList = (id: string, jwt?: string) => {
|
|
|
124
124
|
// console.log(error);
|
|
125
125
|
// }
|
|
126
126
|
});
|
|
127
|
-
return { data, isLoading };
|
|
127
|
+
return { data, isLoading, refetch };
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
export const useActionGetMyCaseQuestion = (id: string, page: number, pageSize: number, jwt?: string) => {
|
package/dist/styles/globals.css
CHANGED
|
@@ -12435,10 +12435,18 @@ body {
|
|
|
12435
12435
|
height: calc(100% - 62px);
|
|
12436
12436
|
}
|
|
12437
12437
|
|
|
12438
|
+
.lg\:h-\[calc\(100vh-100px\)\] {
|
|
12439
|
+
height: calc(100vh - 100px);
|
|
12440
|
+
}
|
|
12441
|
+
|
|
12438
12442
|
.lg\:h-full {
|
|
12439
12443
|
height: 100%;
|
|
12440
12444
|
}
|
|
12441
12445
|
|
|
12446
|
+
.lg\:max-h-\[1000px\] {
|
|
12447
|
+
max-height: 1000px;
|
|
12448
|
+
}
|
|
12449
|
+
|
|
12442
12450
|
.lg\:max-h-\[465px\] {
|
|
12443
12451
|
max-height: 465px;
|
|
12444
12452
|
}
|
|
@@ -12635,6 +12643,10 @@ body {
|
|
|
12635
12643
|
gap: 8px;
|
|
12636
12644
|
}
|
|
12637
12645
|
|
|
12646
|
+
.lg\:overflow-y-auto {
|
|
12647
|
+
overflow-y: auto;
|
|
12648
|
+
}
|
|
12649
|
+
|
|
12638
12650
|
.lg\:whitespace-pre-wrap {
|
|
12639
12651
|
white-space: pre-wrap;
|
|
12640
12652
|
}
|