@daeryun/dr_components 1.1.57 → 1.1.58
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/asset/images/myCase//bfileViewer/download.webp +0 -0
- package/dist/asset/images/myCase//bfileViewer/rotate_ccw.webp +0 -0
- package/dist/asset/images/myCase//bfileViewer/zoom_in.webp +0 -0
- package/dist/asset/images/myCase//bfileViewer/zoom_out.webp +0 -0
- package/dist/asset/images/myCase/icon/arrow.webp +0 -0
- package/dist/asset/images/myCase/icon/chat.webp +0 -0
- package/dist/asset/images/myCase/icon/check_ok.webp +0 -0
- package/dist/asset/images/myCase/icon/search.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- 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 +9 -3
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +35 -14
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +19 -7
- 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/_badge/DocumentBadge.d.ts +4 -0
- package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.jsx +13 -0
- package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.tsx +18 -0
- 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 +2 -1
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +63 -21
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +97 -17
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +2 -1
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +58 -13
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +124 -25
- package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.jsx +12 -7
- package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +12 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.d.ts +5 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.jsx +27 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.tsx +46 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.jsx +34 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.tsx +65 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.d.ts +5 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.jsx +27 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.tsx +47 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.jsx +95 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.tsx +141 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.d.ts +10 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.jsx +149 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.tsx +212 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +3 -4
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +51 -34
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +88 -59
- 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/[id]/_component/_pdf/PdfInlineViewer.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.jsx +154 -0
- package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.tsx +177 -0
- package/dist/components/page/MyCase/_actions/action.d.ts +34 -0
- package/dist/components/page/MyCase/_actions/action.js +59 -0
- package/dist/components/page/MyCase/_actions/action.ts +79 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +2 -4
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +2 -5
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +2 -1
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +14 -6
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +34 -6
- package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.d.ts +14 -0
- package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.jsx +278 -0
- package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.tsx +411 -0
- package/dist/components/page/MyCase/_component/_fileView/HwpViewer.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_fileView/HwpViewer.jsx +56 -0
- package/dist/components/page/MyCase/_component/_fileView/HwpViewer.tsx +111 -0
- package/dist/components/page/MyCase/_component/_fileView/TopOverlay.d.ts +3 -0
- package/dist/components/page/MyCase/_component/_fileView/TopOverlay.jsx +10 -0
- package/dist/components/page/MyCase/_component/_fileView/TopOverlay.tsx +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +8 -3
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +3 -4
- package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.js +34 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.ts +36 -0
- package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.js +33 -0
- package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.ts +25 -0
- package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.js +33 -0
- package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.ts +25 -0
- package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.d.ts +4 -0
- package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.js +33 -0
- package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.ts +25 -0
- package/dist/components/page/MyCase/_type/type.d.ts +3 -1
- package/dist/components/page/MyCase/_type/type.ts +3 -1
- package/dist/styles/globals.css +501 -94
- package/dist/styles/homepage_login.css +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import ModalContainer from './ModalCotainer';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
6
|
+
import { useActionGetDocumentExamineHistory } from '../../../_actions/action';
|
|
7
|
+
import chatIcon from '../../../../../../asset/images/myCase/icon/chat.webp';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import DocumentBadge from '../_badge/DocumentBadge';
|
|
10
|
+
const DoumnetBox = ({ item }) => {
|
|
11
|
+
return (<>
|
|
12
|
+
{(item === null || item === void 0 ? void 0 : item.lawyer_comment) && (<div className="w-full border-b-[1px] border-solid border-grayScale5 py-[16px] sm-top:py-[20px] lg:py-[28px] ">
|
|
13
|
+
<div className="flex w-full flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
|
|
14
|
+
<Image src={chatIcon} alt="chatIcon" width={24} height={24} className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"/>
|
|
15
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
16
|
+
변호사가 전하는 말씀
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
20
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
|
|
21
|
+
{item.lawyer_comment}
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
24
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
25
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
|
|
26
|
+
{item.rejected_at
|
|
27
|
+
? dayjs(item.rejected_at).format('YYYY-MM-DD HH:mm')
|
|
28
|
+
: item.approved_at
|
|
29
|
+
? dayjs(item.approved_at).format('YYYY-MM-DD HH:mm')
|
|
30
|
+
: null}
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
</div>)}
|
|
34
|
+
{(item === null || item === void 0 ? void 0 : item.client_comment) && (<div className="w-full border-b-[1px] border-solid border-grayScale5 pb-[16px] pt-[28px] sm-top:pb-[20px] sm-top:pt-[32px] lg:pt-[40px]">
|
|
35
|
+
<div className="flex flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
|
|
36
|
+
<Image src={chatIcon} alt="chatIcon" width={24} height={24} className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"/>
|
|
37
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">나의 의견</p>
|
|
38
|
+
</div>
|
|
39
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
40
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
|
|
41
|
+
{item.client_comment}
|
|
42
|
+
</p>
|
|
43
|
+
</div>
|
|
44
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
45
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
|
|
46
|
+
{dayjs(item.created_at).format('YYYY-MM-DD HH:mm')}
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
49
|
+
</div>)}
|
|
50
|
+
</>);
|
|
51
|
+
};
|
|
52
|
+
const CaseExamineDocumentModal = ({ isOpen, item, onClose, caseIdx }) => {
|
|
53
|
+
var _a, _b, _c;
|
|
54
|
+
const comment = useMemo(() => {
|
|
55
|
+
// review_status 값에 따라 title을 결정
|
|
56
|
+
switch (item === null || item === void 0 ? void 0 : item.review_status) {
|
|
57
|
+
case 1:
|
|
58
|
+
return { title: '승인을 완료했어요' };
|
|
59
|
+
case 0:
|
|
60
|
+
return { title: '승인이 필요해요' };
|
|
61
|
+
case -1:
|
|
62
|
+
return { title: '보완을 요청했어요' };
|
|
63
|
+
default:
|
|
64
|
+
return { title: '문서 상태 미확인' };
|
|
65
|
+
}
|
|
66
|
+
}, [item === null || item === void 0 ? void 0 : item.review_status]);
|
|
67
|
+
const { data, isLoading, isFetched, isFetching, error } = useActionGetDocumentExamineHistory({
|
|
68
|
+
caseIdx: caseIdx,
|
|
69
|
+
idx: item.idx
|
|
70
|
+
});
|
|
71
|
+
return (<ModalContainer isOpen={isOpen} onClose={() => {
|
|
72
|
+
onClose();
|
|
73
|
+
}}>
|
|
74
|
+
<div className="absolute flex max-h-[489px] w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:w-[calc(100%-104px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:px-[52px] sm-top:py-[52px] lg:w-[calc(100%-24px)] lg:max-w-[1000px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
|
|
75
|
+
<div className="flex w-full flex-row items-baseline justify-between gap-[19px] border-b-[1px] border-solid border-grayScale5 pb-[28px] sm-top:pb-[32px] lg:pb-[40px] ">
|
|
76
|
+
<div className="flex w-full flex-col gap-[12px] sm-top:gap-[16px] lg:gap-[20px]">
|
|
77
|
+
<DocumentBadge review_status={item.review_status}/>
|
|
78
|
+
<p className="title_medium_mo sm-top:title_medium_tb lg:title_medium break-all leading-[26.5px] text-black sm-top:leading-[35px] lg:leading-[40px]">
|
|
79
|
+
{comment === null || comment === void 0 ? void 0 : comment.title}
|
|
80
|
+
{/* 길이 테스트용 더미 텍스트 */}
|
|
81
|
+
</p>
|
|
82
|
+
</div>
|
|
83
|
+
<Image src={close} alt="close" width={24} height={24} className="h-[16px] w-[16px] flex-shrink-0 cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]" onClick={() => {
|
|
84
|
+
onClose();
|
|
85
|
+
}}/>
|
|
86
|
+
</div>
|
|
87
|
+
<div className="flex max-h-[336px] w-full flex-col overflow-y-auto overscroll-contain sm-top:max-h-[330px] lg:max-h-[410px] ">
|
|
88
|
+
{(_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.map((item, key) => <DoumnetBox key={key} item={item}/>)}
|
|
89
|
+
{(_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.map((item, key) => <DoumnetBox key={key} item={item}/>)}
|
|
90
|
+
{(_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.map((item, key) => <DoumnetBox key={key} item={item}/>)}
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</ModalContainer>);
|
|
94
|
+
};
|
|
95
|
+
export default CaseExamineDocumentModal;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import ModalContainer from './ModalCotainer';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
6
|
+
|
|
7
|
+
import { useActionGetDocumentExamineHistory } from '../../../_actions/action';
|
|
8
|
+
import chatIcon from '../../../../../../asset/images/myCase/icon/chat.webp';
|
|
9
|
+
import dayjs from 'dayjs';
|
|
10
|
+
import DocumentBadge from '../_badge/DocumentBadge';
|
|
11
|
+
const DoumnetBox = ({ item }: { item: any }) => {
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
{item?.lawyer_comment && (
|
|
15
|
+
<div className="w-full border-b-[1px] border-solid border-grayScale5 py-[16px] sm-top:py-[20px] lg:py-[28px] ">
|
|
16
|
+
<div className="flex w-full flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
|
|
17
|
+
<Image
|
|
18
|
+
src={chatIcon}
|
|
19
|
+
alt="chatIcon"
|
|
20
|
+
width={24}
|
|
21
|
+
height={24}
|
|
22
|
+
className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"
|
|
23
|
+
/>
|
|
24
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
25
|
+
변호사가 전하는 말씀
|
|
26
|
+
</p>
|
|
27
|
+
</div>
|
|
28
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
29
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
|
|
30
|
+
{item.lawyer_comment}
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
34
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
|
|
35
|
+
{item.rejected_at
|
|
36
|
+
? dayjs(item.rejected_at).format('YYYY-MM-DD HH:mm')
|
|
37
|
+
: item.approved_at
|
|
38
|
+
? dayjs(item.approved_at).format('YYYY-MM-DD HH:mm')
|
|
39
|
+
: null}
|
|
40
|
+
</p>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
)}
|
|
44
|
+
{item?.client_comment && (
|
|
45
|
+
<div className="w-full border-b-[1px] border-solid border-grayScale5 pb-[16px] pt-[28px] sm-top:pb-[20px] sm-top:pt-[32px] lg:pt-[40px]">
|
|
46
|
+
<div className="flex flex-row items-center gap-[4px] sm-top:gap-[8px] lg:gap-[10px]">
|
|
47
|
+
<Image
|
|
48
|
+
src={chatIcon}
|
|
49
|
+
alt="chatIcon"
|
|
50
|
+
width={24}
|
|
51
|
+
height={24}
|
|
52
|
+
className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"
|
|
53
|
+
/>
|
|
54
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">나의 의견</p>
|
|
55
|
+
</div>
|
|
56
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
57
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale1 ">
|
|
58
|
+
{item.client_comment}
|
|
59
|
+
</p>
|
|
60
|
+
</div>
|
|
61
|
+
<div className="mt-[12px] sm-top:mt-[16px] lg:mt-[20px] ">
|
|
62
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
|
|
63
|
+
{dayjs(item.created_at).format('YYYY-MM-DD HH:mm')}
|
|
64
|
+
</p>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
)}
|
|
68
|
+
</>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const CaseExamineDocumentModal = ({
|
|
73
|
+
isOpen,
|
|
74
|
+
item,
|
|
75
|
+
onClose,
|
|
76
|
+
caseIdx
|
|
77
|
+
}: {
|
|
78
|
+
isOpen: boolean;
|
|
79
|
+
onClose: () => void;
|
|
80
|
+
item: any;
|
|
81
|
+
caseIdx: string;
|
|
82
|
+
}) => {
|
|
83
|
+
const comment = useMemo(() => {
|
|
84
|
+
// review_status 값에 따라 title을 결정
|
|
85
|
+
switch (item?.review_status) {
|
|
86
|
+
case 1:
|
|
87
|
+
return { title: '승인을 완료했어요' };
|
|
88
|
+
case 0:
|
|
89
|
+
return { title: '승인이 필요해요' };
|
|
90
|
+
case -1:
|
|
91
|
+
return { title: '보완을 요청했어요' };
|
|
92
|
+
default:
|
|
93
|
+
return { title: '문서 상태 미확인' };
|
|
94
|
+
}
|
|
95
|
+
}, [item?.review_status]);
|
|
96
|
+
const { data, isLoading, isFetched, isFetching, error } = useActionGetDocumentExamineHistory({
|
|
97
|
+
caseIdx: caseIdx as string,
|
|
98
|
+
idx: item.idx as number
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
return (
|
|
102
|
+
<ModalContainer
|
|
103
|
+
isOpen={isOpen}
|
|
104
|
+
onClose={() => {
|
|
105
|
+
onClose();
|
|
106
|
+
}}
|
|
107
|
+
>
|
|
108
|
+
<div
|
|
109
|
+
className="absolute flex max-h-[489px] w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 p-[32px] sm-top:w-[calc(100%-104px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:px-[52px] sm-top:py-[52px] lg:w-[calc(100%-24px)] lg:max-w-[1000px] lg:p-[52px] "
|
|
110
|
+
onClick={e => e.stopPropagation()}
|
|
111
|
+
>
|
|
112
|
+
<div className="flex w-full flex-row items-baseline justify-between gap-[19px] border-b-[1px] border-solid border-grayScale5 pb-[28px] sm-top:pb-[32px] lg:pb-[40px] ">
|
|
113
|
+
<div className="flex w-full flex-col gap-[12px] sm-top:gap-[16px] lg:gap-[20px]">
|
|
114
|
+
<DocumentBadge review_status={item.review_status} />
|
|
115
|
+
<p className="title_medium_mo sm-top:title_medium_tb lg:title_medium break-all leading-[26.5px] text-black sm-top:leading-[35px] lg:leading-[40px]">
|
|
116
|
+
{comment?.title}
|
|
117
|
+
{/* 길이 테스트용 더미 텍스트 */}
|
|
118
|
+
</p>
|
|
119
|
+
</div>
|
|
120
|
+
<Image
|
|
121
|
+
src={close}
|
|
122
|
+
alt="close"
|
|
123
|
+
width={24}
|
|
124
|
+
height={24}
|
|
125
|
+
className="h-[16px] w-[16px] flex-shrink-0 cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
|
|
126
|
+
onClick={() => {
|
|
127
|
+
onClose();
|
|
128
|
+
}}
|
|
129
|
+
/>
|
|
130
|
+
</div>
|
|
131
|
+
<div className="flex max-h-[336px] w-full flex-col overflow-y-auto overscroll-contain sm-top:max-h-[330px] lg:max-h-[410px] ">
|
|
132
|
+
{data?.data?.map((item: any, key: number) => <DoumnetBox key={key} item={item} />)}
|
|
133
|
+
{data?.data?.map((item: any, key: number) => <DoumnetBox key={key} item={item} />)}
|
|
134
|
+
{data?.data?.map((item: any, key: number) => <DoumnetBox key={key} item={item} />)}
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</ModalContainer>
|
|
138
|
+
);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export default CaseExamineDocumentModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type CaseExamineModalProps = {
|
|
2
|
+
openState: null | 'approve' | 'ask';
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
item: {
|
|
5
|
+
name?: string;
|
|
6
|
+
} | any;
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
declare const CaseExamineModal: ({ openState, onClose, item, id }: CaseExamineModalProps) => import("react").JSX.Element;
|
|
10
|
+
export default CaseExamineModal;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import Image from 'next/image';
|
|
12
|
+
import ModalContainer from './ModalCotainer';
|
|
13
|
+
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
14
|
+
import chatIcon from '../../../../../../asset/images/myCase/icon/chat.webp';
|
|
15
|
+
import { useState } from 'react';
|
|
16
|
+
import { useActionGetDaeryunFileList, useActionPostCaseExamine } from '../../../_actions/action';
|
|
17
|
+
import CaeeExamineSuccessModal from '../_modal/CaeeExamineSuccessModal';
|
|
18
|
+
import CaeeExamineAskSuccessModal from '../_modal/CaeeExamineAskSuccessModal';
|
|
19
|
+
import CaeeExamineStopModal from '../_modal/CaeeExamineStopModal';
|
|
20
|
+
const CaseExamineModal = ({ openState, onClose, item, id }) => {
|
|
21
|
+
const [value, setValue] = useState('');
|
|
22
|
+
const [isStop, setIsStop] = useState(false);
|
|
23
|
+
const { mutateAsync, isLoading } = useActionPostCaseExamine();
|
|
24
|
+
const [isSuccess, setIsSuccess] = useState(false);
|
|
25
|
+
const { refetch: daeryunFileListRefetch } = useActionGetDaeryunFileList(id, undefined, false);
|
|
26
|
+
const menu = (() => {
|
|
27
|
+
switch (openState) {
|
|
28
|
+
case 'approve':
|
|
29
|
+
return {
|
|
30
|
+
title: '승인',
|
|
31
|
+
item1: '(선택)',
|
|
32
|
+
item1ClassName: 'text-subColor05',
|
|
33
|
+
buttonText: '승인'
|
|
34
|
+
};
|
|
35
|
+
case 'ask':
|
|
36
|
+
return {
|
|
37
|
+
title: '보완요청',
|
|
38
|
+
item1: '(필수)',
|
|
39
|
+
item1ClassName: 'text-mycaseMainColor',
|
|
40
|
+
buttonText: '보완요청'
|
|
41
|
+
};
|
|
42
|
+
default:
|
|
43
|
+
return {
|
|
44
|
+
title: '',
|
|
45
|
+
description: '',
|
|
46
|
+
buttonText: ''
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
})();
|
|
50
|
+
const handleClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
+
if (openState === 'ask') {
|
|
52
|
+
if (value.length === 0) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const res = yield mutateAsync({
|
|
57
|
+
caseIdx: id,
|
|
58
|
+
comment: value,
|
|
59
|
+
idx: item.idx,
|
|
60
|
+
isApproved: openState === 'approve'
|
|
61
|
+
});
|
|
62
|
+
if (res.result) {
|
|
63
|
+
setIsSuccess(true);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
return (<>
|
|
67
|
+
<ModalContainer isOpen={!!openState} onClose={() => {
|
|
68
|
+
if (value.length > 0) {
|
|
69
|
+
setIsStop(true);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
onClose();
|
|
73
|
+
}}>
|
|
74
|
+
{/* ✅ 패딩/보더/라운드는 바깥 컨테이너, overflow는 hidden */}
|
|
75
|
+
<div className={'absolute flex h-full max-h-full w-full flex-col overflow-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 ' +
|
|
76
|
+
' sm-top:max-h-[741px] sm-top:w-[calc(100%-104px)] sm-top:max-w-[780px] sm-top:rounded-[32px] ' +
|
|
77
|
+
' lg:h-full lg:max-h-[831px] lg:w-full lg:max-w-[1000px]'} onClick={e => e.stopPropagation()}>
|
|
78
|
+
{/* ✅ 헤더: 스크롤 안 타는 영역 */}
|
|
79
|
+
<div className="px-[16px] pt-[32px] sm-top:px-[52px] sm-top:pt-[52px] ">
|
|
80
|
+
<div className="flex flex-row items-baseline justify-between gap-[19px] sm-top:items-start lg:gap-[40px] ">
|
|
81
|
+
<p className="title_medium_mo sm-top:title_medium_tb lg:title_medium break-all leading-[26.5px] text-black sm-top:leading-[35px] lg:leading-[40px]">
|
|
82
|
+
{item === null || item === void 0 ? void 0 : item.name} 문서를 {menu.title}하시겠습니까?
|
|
83
|
+
{/* 길이 테스트용 더미 텍스트 */}
|
|
84
|
+
</p>
|
|
85
|
+
<Image src={close} alt="close" width={24} height={24} className="h-[16px] w-[16px] flex-shrink-0 cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]" onClick={() => {
|
|
86
|
+
if (value.length > 0) {
|
|
87
|
+
setIsStop(true);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
onClose();
|
|
91
|
+
}}/>
|
|
92
|
+
</div>
|
|
93
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 mt-[12px] text-left leading-[23px] text-grayScale2 sm-top:mt-[20px] sm-top:leading-[30px] lg:mt-[20px] lg:leading-[35px]">
|
|
94
|
+
의견은 담당 변호사에게 전달됩니다.
|
|
95
|
+
</p>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
{/* ✅ 스크롤 영역: 가운데만 overflow-y-auto */}
|
|
99
|
+
<div className="flex min-h-[300px] flex-1 flex-shrink-0 flex-col overflow-y-auto px-[16px] sm-top:px-[52px] lg:px-[52px]">
|
|
100
|
+
<div className="mt-[20px] flex flex-row items-center justify-between sm-top:mt-[52px] lg:mt-[60px]">
|
|
101
|
+
<div className="flex flex-row items-center">
|
|
102
|
+
<Image src={chatIcon} alt="chatIcon" width={24} height={24} className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"/>
|
|
103
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 ml-[4px] leading-[20px] text-black sm-top:ml-[8px] sm-top:leading-[25px] lg:ml-[10px] lg:leading-[30px]">
|
|
104
|
+
나의 의견
|
|
105
|
+
<span className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 ml-[2px] leading-[18px] sm-top:ml-[4px] sm-top:leading-[23px] lg:leading-[25px] ${menu.item1ClassName}`}>
|
|
106
|
+
{menu.item1}
|
|
107
|
+
</span>
|
|
108
|
+
</p>
|
|
109
|
+
</div>
|
|
110
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-mycaseMainColor">
|
|
111
|
+
{value.length}
|
|
112
|
+
<span className=" text-black"> / 200</span>
|
|
113
|
+
</p>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
{/* ✅ 남은 공간을 전부 차지 */}
|
|
117
|
+
<div className="mt-[20px] min-h-[200px] flex-1 flex-shrink-0 rounded-[8px] border border-solid border-grayScale5 p-[16px] sm-top:mt-[15px] sm-top:rounded-[10px] sm-top:p-[32px] lg:mt-[18px] lg:p-[36px]">
|
|
118
|
+
<textarea className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 h-full min-h-0 w-full resize-none outline-none" placeholder="내용을 입력해 주세요" maxLength={200} value={value} onChange={e => setValue(e.target.value)}/>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
{/* 필요하면 하단 여백 유지, 아니면 제거 */}
|
|
122
|
+
<div className="h-[16px] flex-shrink-0 sm-top:h-[32px] lg:h-[40px]"/>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
{/* ✅ 푸터: 스크롤 안 타는 영역 */}
|
|
126
|
+
<div className="px-[16px] pb-[32px] sm-top:px-[52px] sm-top:pb-[52px] lg:px-[52px] lg:pb-[52px] ">
|
|
127
|
+
<button className={`body_large2_mo sm-top:body_large2_tb lg:body_large2 flex h-[48px] w-full items-center justify-center rounded-[4px] ${openState === 'approve' || value.length > 0 ? 'bg-mycaseMainColor text-white' : 'bg-grayScale6 text-grayScale3'} sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px]`} onClick={handleClick}>
|
|
128
|
+
{menu.buttonText}
|
|
129
|
+
</button>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</ModalContainer>
|
|
133
|
+
{isStop && (<CaeeExamineStopModal isOpen={isStop} onAllClose={() => {
|
|
134
|
+
setIsStop(false);
|
|
135
|
+
onClose();
|
|
136
|
+
}} onClose={() => setIsStop(false)}/>)}
|
|
137
|
+
{isSuccess && openState === 'ask' && (<CaeeExamineAskSuccessModal isOpen={isSuccess} onClose={() => {
|
|
138
|
+
setIsSuccess(false);
|
|
139
|
+
daeryunFileListRefetch();
|
|
140
|
+
onClose();
|
|
141
|
+
}}/>)}
|
|
142
|
+
{isSuccess && openState === 'approve' && (<CaeeExamineSuccessModal isOpen={isSuccess} onClose={() => {
|
|
143
|
+
setIsSuccess(false);
|
|
144
|
+
daeryunFileListRefetch();
|
|
145
|
+
onClose();
|
|
146
|
+
}}/>)}
|
|
147
|
+
</>);
|
|
148
|
+
};
|
|
149
|
+
export default CaseExamineModal;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import ModalContainer from './ModalCotainer';
|
|
5
|
+
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
6
|
+
import chatIcon from '../../../../../../asset/images/myCase/icon/chat.webp';
|
|
7
|
+
import { useState } from 'react';
|
|
8
|
+
import { useActionGetDaeryunFileList, useActionPostCaseExamine } from '../../../_actions/action';
|
|
9
|
+
import CaeeExamineSuccessModal from '../_modal/CaeeExamineSuccessModal';
|
|
10
|
+
import CaeeExamineAskSuccessModal from '../_modal/CaeeExamineAskSuccessModal';
|
|
11
|
+
import CaeeExamineStopModal from '../_modal/CaeeExamineStopModal';
|
|
12
|
+
|
|
13
|
+
type CaseExamineModalProps = {
|
|
14
|
+
openState: null | 'approve' | 'ask';
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
item:
|
|
17
|
+
| {
|
|
18
|
+
name?: string;
|
|
19
|
+
// 필요하면 여기 다른 필드 추가
|
|
20
|
+
}
|
|
21
|
+
| any;
|
|
22
|
+
id: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const CaseExamineModal = ({ openState, onClose, item, id }: CaseExamineModalProps) => {
|
|
26
|
+
const [value, setValue] = useState('');
|
|
27
|
+
const [isStop, setIsStop] = useState(false);
|
|
28
|
+
const { mutateAsync, isLoading } = useActionPostCaseExamine();
|
|
29
|
+
const [isSuccess, setIsSuccess] = useState(false);
|
|
30
|
+
|
|
31
|
+
const { refetch: daeryunFileListRefetch } = useActionGetDaeryunFileList(id as string, undefined, false);
|
|
32
|
+
|
|
33
|
+
const menu = (() => {
|
|
34
|
+
switch (openState) {
|
|
35
|
+
case 'approve':
|
|
36
|
+
return {
|
|
37
|
+
title: '승인',
|
|
38
|
+
item1: '(선택)',
|
|
39
|
+
item1ClassName: 'text-subColor05',
|
|
40
|
+
|
|
41
|
+
buttonText: '승인'
|
|
42
|
+
};
|
|
43
|
+
case 'ask':
|
|
44
|
+
return {
|
|
45
|
+
title: '보완요청',
|
|
46
|
+
|
|
47
|
+
item1: '(필수)',
|
|
48
|
+
item1ClassName: 'text-mycaseMainColor',
|
|
49
|
+
buttonText: '보완요청'
|
|
50
|
+
};
|
|
51
|
+
default:
|
|
52
|
+
return {
|
|
53
|
+
title: '',
|
|
54
|
+
description: '',
|
|
55
|
+
buttonText: ''
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
})();
|
|
59
|
+
const handleClick = async () => {
|
|
60
|
+
if (openState === 'ask') {
|
|
61
|
+
if (value.length === 0) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const res = await mutateAsync({
|
|
67
|
+
caseIdx: id,
|
|
68
|
+
comment: value,
|
|
69
|
+
idx: item.idx,
|
|
70
|
+
isApproved: openState === 'approve'
|
|
71
|
+
});
|
|
72
|
+
if (res.result) {
|
|
73
|
+
setIsSuccess(true);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
return (
|
|
78
|
+
<>
|
|
79
|
+
<ModalContainer
|
|
80
|
+
isOpen={!!openState}
|
|
81
|
+
onClose={() => {
|
|
82
|
+
if (value.length > 0) {
|
|
83
|
+
setIsStop(true);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
onClose();
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
90
|
+
{/* ✅ 패딩/보더/라운드는 바깥 컨테이너, overflow는 hidden */}
|
|
91
|
+
<div
|
|
92
|
+
className={
|
|
93
|
+
'absolute flex h-full max-h-full w-full flex-col overflow-auto rounded-[16px] border border-solid border-grayScale4 bg-grayScale8 ' +
|
|
94
|
+
' sm-top:max-h-[741px] sm-top:w-[calc(100%-104px)] sm-top:max-w-[780px] sm-top:rounded-[32px] ' +
|
|
95
|
+
' lg:h-full lg:max-h-[831px] lg:w-full lg:max-w-[1000px]'
|
|
96
|
+
}
|
|
97
|
+
onClick={e => e.stopPropagation()}
|
|
98
|
+
>
|
|
99
|
+
{/* ✅ 헤더: 스크롤 안 타는 영역 */}
|
|
100
|
+
<div className="px-[16px] pt-[32px] sm-top:px-[52px] sm-top:pt-[52px] ">
|
|
101
|
+
<div className="flex flex-row items-baseline justify-between gap-[19px] sm-top:items-start lg:gap-[40px] ">
|
|
102
|
+
<p className="title_medium_mo sm-top:title_medium_tb lg:title_medium break-all leading-[26.5px] text-black sm-top:leading-[35px] lg:leading-[40px]">
|
|
103
|
+
{item?.name} 문서를 {menu.title}하시겠습니까?
|
|
104
|
+
{/* 길이 테스트용 더미 텍스트 */}
|
|
105
|
+
</p>
|
|
106
|
+
<Image
|
|
107
|
+
src={close}
|
|
108
|
+
alt="close"
|
|
109
|
+
width={24}
|
|
110
|
+
height={24}
|
|
111
|
+
className="h-[16px] w-[16px] flex-shrink-0 cursor-pointer sm-top:h-[20px] sm-top:w-[20px] lg:h-[24px] lg:w-[24px]"
|
|
112
|
+
onClick={() => {
|
|
113
|
+
if (value.length > 0) {
|
|
114
|
+
setIsStop(true);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
onClose();
|
|
118
|
+
}}
|
|
119
|
+
/>
|
|
120
|
+
</div>
|
|
121
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 mt-[12px] text-left leading-[23px] text-grayScale2 sm-top:mt-[20px] sm-top:leading-[30px] lg:mt-[20px] lg:leading-[35px]">
|
|
122
|
+
의견은 담당 변호사에게 전달됩니다.
|
|
123
|
+
</p>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
{/* ✅ 스크롤 영역: 가운데만 overflow-y-auto */}
|
|
127
|
+
<div className="flex min-h-[300px] flex-1 flex-shrink-0 flex-col overflow-y-auto px-[16px] sm-top:px-[52px] lg:px-[52px]">
|
|
128
|
+
<div className="mt-[20px] flex flex-row items-center justify-between sm-top:mt-[52px] lg:mt-[60px]">
|
|
129
|
+
<div className="flex flex-row items-center">
|
|
130
|
+
<Image
|
|
131
|
+
src={chatIcon}
|
|
132
|
+
alt="chatIcon"
|
|
133
|
+
width={24}
|
|
134
|
+
height={24}
|
|
135
|
+
className="h-[15.18px] w-[16px] sm-top:h-[18.98px] sm-top:w-[20px] lg:h-[24.66px] lg:w-[26px]"
|
|
136
|
+
/>
|
|
137
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 ml-[4px] leading-[20px] text-black sm-top:ml-[8px] sm-top:leading-[25px] lg:ml-[10px] lg:leading-[30px]">
|
|
138
|
+
나의 의견
|
|
139
|
+
<span
|
|
140
|
+
className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 ml-[2px] leading-[18px] sm-top:ml-[4px] sm-top:leading-[23px] lg:leading-[25px] ${menu.item1ClassName}`}
|
|
141
|
+
>
|
|
142
|
+
{menu.item1}
|
|
143
|
+
</span>
|
|
144
|
+
</p>
|
|
145
|
+
</div>
|
|
146
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-mycaseMainColor">
|
|
147
|
+
{value.length}
|
|
148
|
+
<span className=" text-black"> / 200</span>
|
|
149
|
+
</p>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
{/* ✅ 남은 공간을 전부 차지 */}
|
|
153
|
+
<div className="mt-[20px] min-h-[200px] flex-1 flex-shrink-0 rounded-[8px] border border-solid border-grayScale5 p-[16px] sm-top:mt-[15px] sm-top:rounded-[10px] sm-top:p-[32px] lg:mt-[18px] lg:p-[36px]">
|
|
154
|
+
<textarea
|
|
155
|
+
className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 h-full min-h-0 w-full resize-none outline-none"
|
|
156
|
+
placeholder="내용을 입력해 주세요"
|
|
157
|
+
maxLength={200}
|
|
158
|
+
value={value}
|
|
159
|
+
onChange={e => setValue(e.target.value)}
|
|
160
|
+
/>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
{/* 필요하면 하단 여백 유지, 아니면 제거 */}
|
|
164
|
+
<div className="h-[16px] flex-shrink-0 sm-top:h-[32px] lg:h-[40px]" />
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
{/* ✅ 푸터: 스크롤 안 타는 영역 */}
|
|
168
|
+
<div className="px-[16px] pb-[32px] sm-top:px-[52px] sm-top:pb-[52px] lg:px-[52px] lg:pb-[52px] ">
|
|
169
|
+
<button
|
|
170
|
+
className={`body_large2_mo sm-top:body_large2_tb lg:body_large2 flex h-[48px] w-full items-center justify-center rounded-[4px] ${openState === 'approve' || value.length > 0 ? 'bg-mycaseMainColor text-white' : 'bg-grayScale6 text-grayScale3'} sm-top:h-[60px] sm-top:rounded-[8px] lg:h-[72px] lg:rounded-[16px]`}
|
|
171
|
+
onClick={handleClick}
|
|
172
|
+
>
|
|
173
|
+
{menu.buttonText}
|
|
174
|
+
</button>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</ModalContainer>
|
|
178
|
+
{isStop && (
|
|
179
|
+
<CaeeExamineStopModal
|
|
180
|
+
isOpen={isStop}
|
|
181
|
+
onAllClose={() => {
|
|
182
|
+
setIsStop(false);
|
|
183
|
+
onClose();
|
|
184
|
+
}}
|
|
185
|
+
onClose={() => setIsStop(false)}
|
|
186
|
+
/>
|
|
187
|
+
)}
|
|
188
|
+
{isSuccess && openState === 'ask' && (
|
|
189
|
+
<CaeeExamineAskSuccessModal
|
|
190
|
+
isOpen={isSuccess}
|
|
191
|
+
onClose={() => {
|
|
192
|
+
setIsSuccess(false);
|
|
193
|
+
daeryunFileListRefetch();
|
|
194
|
+
onClose();
|
|
195
|
+
}}
|
|
196
|
+
/>
|
|
197
|
+
)}
|
|
198
|
+
{isSuccess && openState === 'approve' && (
|
|
199
|
+
<CaeeExamineSuccessModal
|
|
200
|
+
isOpen={isSuccess}
|
|
201
|
+
onClose={() => {
|
|
202
|
+
setIsSuccess(false);
|
|
203
|
+
daeryunFileListRefetch();
|
|
204
|
+
onClose();
|
|
205
|
+
}}
|
|
206
|
+
/>
|
|
207
|
+
)}
|
|
208
|
+
</>
|
|
209
|
+
);
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export default CaseExamineModal;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ContractImage } from '../../../_type/type';
|
|
2
|
-
|
|
1
|
+
import type { ContractImage } from '../../../_type/type';
|
|
2
|
+
export default function ContractModal({ isOpen, onClose, data }: {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
data: ContractImage[];
|
|
6
|
-
})
|
|
7
|
-
export default ContractModal;
|
|
6
|
+
}): import("react").JSX.Element;
|