@daeryun/dr_components 1.1.60 → 1.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +1 -1
  2. package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +1 -1
  3. package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +1 -1
  4. package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +3 -9
  5. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +14 -35
  6. package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +7 -19
  7. package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +1 -1
  8. package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +1 -1
  9. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +1 -1
  10. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +1 -1
  11. package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +1 -2
  12. package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +21 -63
  13. package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +17 -97
  14. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +1 -2
  15. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +13 -58
  16. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +25 -124
  17. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.jsx +7 -12
  18. package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +7 -12
  19. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.d.ts +4 -3
  20. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.jsx +34 -51
  21. package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +59 -88
  22. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.jsx +2 -2
  23. package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.tsx +2 -2
  24. package/dist/components/page/MyCase/_actions/action.d.ts +0 -34
  25. package/dist/components/page/MyCase/_actions/action.js +0 -59
  26. package/dist/components/page/MyCase/_actions/action.ts +0 -79
  27. package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +4 -2
  28. package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +5 -2
  29. package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +1 -2
  30. package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +6 -14
  31. package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +6 -34
  32. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +3 -8
  33. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +4 -3
  34. package/dist/components/page/MyCase/_type/type.d.ts +1 -3
  35. package/dist/components/page/MyCase/_type/type.ts +1 -3
  36. package/dist/styles/globals.css +94 -501
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +1 -1
  39. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.d.ts +0 -4
  40. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.jsx +0 -13
  41. package/dist/components/page/MyCase/[id]/_component/_badge/DocumentBadge.tsx +0 -18
  42. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.d.ts +0 -5
  43. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.jsx +0 -27
  44. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineAskSuccessModal.tsx +0 -46
  45. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.d.ts +0 -6
  46. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.jsx +0 -34
  47. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineStopModal.tsx +0 -65
  48. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.d.ts +0 -5
  49. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.jsx +0 -27
  50. package/dist/components/page/MyCase/[id]/_component/_modal/CaeeExamineSuccessModal.tsx +0 -47
  51. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.d.ts +0 -7
  52. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.jsx +0 -93
  53. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineDocumentModal.tsx +0 -139
  54. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.d.ts +0 -10
  55. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.jsx +0 -149
  56. package/dist/components/page/MyCase/[id]/_component/_modal/CaseExamineModal.tsx +0 -212
  57. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.d.ts +0 -6
  58. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.jsx +0 -154
  59. package/dist/components/page/MyCase/[id]/_component/_pdf/PdfInlineViewer.tsx +0 -177
  60. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.d.ts +0 -14
  61. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.jsx +0 -278
  62. package/dist/components/page/MyCase/_component/_fileView/FilePreViewer.tsx +0 -411
  63. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.d.ts +0 -8
  64. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.jsx +0 -56
  65. package/dist/components/page/MyCase/_component/_fileView/HwpViewer.tsx +0 -111
  66. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.d.ts +0 -3
  67. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.jsx +0 -10
  68. package/dist/components/page/MyCase/_component/_fileView/TopOverlay.tsx +0 -10
  69. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.d.ts +0 -7
  70. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.js +0 -34
  71. package/dist/components/page/MyCase/_fetchers/addMyCaseExamine.ts +0 -36
  72. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.d.ts +0 -5
  73. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.js +0 -33
  74. package/dist/components/page/MyCase/_fetchers/getDaeryunFileList.ts +0 -25
  75. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.d.ts +0 -5
  76. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.js +0 -33
  77. package/dist/components/page/MyCase/_fetchers/getDocumentExamineHistory.ts +0 -25
  78. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.d.ts +0 -4
  79. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.js +0 -33
  80. package/dist/components/page/MyCase/_fetchers/getHwpToPdfFile.ts +0 -25
@@ -1,6 +1,6 @@
1
1
  import Image from 'next/image';
2
2
  import ModalContainer from './ModalCotainer';
3
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
3
+ import modalCheck from '../../../../../../asset/images/myCase/icon/modal_icon.webp';
4
4
  const CaseInquiryConfirmModal = ({ isOpen, onClose }) => {
5
5
  // console.log(isLoading);
6
6
  return (<ModalContainer isOpen={isOpen} onClose={() => {
@@ -9,7 +9,7 @@ const CaseInquiryConfirmModal = ({ isOpen, onClose }) => {
9
9
  <div className="absolute flex w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[54px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
10
10
  <Image src={modalCheck} alt="check" width={40} height={48.9} className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"/>
11
11
  <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 mt-[20.11px] sm-top:mt-[48px] lg:mt-[60px]">
12
- 문서 제출이 완료되었습니다.
12
+ 파일 제출이 완료되었습니다.
13
13
  </p>
14
14
 
15
15
  <button className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[53px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[73px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
@@ -1,6 +1,6 @@
1
1
  import Image from 'next/image';
2
2
  import ModalContainer from './ModalCotainer';
3
- import modalCheck from '../../../../../../asset/images/myCase/icon/check_ok.webp';
3
+ import modalCheck from '../../../../../../asset/images/myCase/icon/modal_icon.webp';
4
4
 
5
5
  const CaseInquiryConfirmModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
6
6
  // console.log(isLoading);
@@ -23,7 +23,7 @@ const CaseInquiryConfirmModal = ({ isOpen, onClose }: { isOpen: boolean; onClose
23
23
  className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"
24
24
  />
25
25
  <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 mt-[20.11px] sm-top:mt-[48px] lg:mt-[60px]">
26
- 문서 제출이 완료되었습니다.
26
+ 파일 제출이 완료되었습니다.
27
27
  </p>
28
28
 
29
29
  <button
@@ -30,23 +30,6 @@ export declare const useActionGetMyCaseQuestion: (id: string, page: number, page
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 useActionGetDaeryunFileList: (id: string, jwt?: string, enabled?: boolean) => {
34
- data: FetchType<FileList[]> | undefined;
35
- isLoading: boolean;
36
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<FetchType<FileList[]>, Error>>;
37
- };
38
- export declare const useActionPostCaseExamine: () => {
39
- mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
40
- result: boolean;
41
- data: any;
42
- }, unknown, {
43
- caseIdx: string;
44
- comment: string;
45
- idx: string;
46
- isApproved: boolean;
47
- }, unknown>;
48
- isLoading: boolean;
49
- };
50
33
  export declare const useActionPostMyCaseQuestion: (id: string, content: string, jwt?: string) => {
51
34
  mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FetchType<Question[]>, Error, void, unknown>;
52
35
  isLoading: boolean;
@@ -70,20 +53,3 @@ export type UploadResponse = {
70
53
  export declare const useActionPostMyFileUpload: (id: string) => {
71
54
  mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<UploadResponse, unknown, File[], unknown>;
72
55
  };
73
- export declare const useActionGetDocumentExamineHistory: ({ caseIdx, idx }: {
74
- caseIdx: string;
75
- idx: number;
76
- }) => {
77
- data: any;
78
- isLoading: boolean;
79
- isFetched: boolean;
80
- isFetching: boolean;
81
- error: Error | null;
82
- };
83
- export declare const useActionViewHwpToPdf: (key: number) => {
84
- data: any;
85
- isLoading: boolean;
86
- isFetched: boolean;
87
- isFetching: boolean;
88
- error: Error | null;
89
- };
@@ -17,10 +17,6 @@ import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
17
17
  import getCaseList from '../_fetchers/getCaseList';
18
18
  import getContact from '../_fetchers/getContact';
19
19
  import addMyFileUpload from '../_fetchers/addMyFileUpload';
20
- import getDaeryunFileList from '../_fetchers/getDaeryunFileList';
21
- import addMyCaseExamine from '../_fetchers/addMyCaseExamine';
22
- import getDocumentExamineHistory from '../_fetchers/getDocumentExamineHistory';
23
- import getHwpToPdfFile from '../_fetchers/getHwpToPdfFile';
24
20
  const jwt2 = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
25
21
  // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsImVtYWlsIjoiNjAzMDgwNEBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzQwNDQ2Nzg1LCJleHAiOjE3NDA0ODI3ODV9.v_d7htci4fjLA5MqBXWxUqyNjsAm2GEcdRBO5se-DB8'; //빈거
26
22
  export const useActionGetCaseList = ({ tapState,
@@ -135,41 +131,6 @@ export const useActionGetMyCaseQuestion = (id, page, pageSize, jwt) => {
135
131
  });
136
132
  return { data, isLoading, refetch };
137
133
  };
138
- export const useActionGetDaeryunFileList = (id, jwt, enabled) => {
139
- const { data, isLoading, refetch } = useQuery({
140
- queryKey: ['case', 'daeryunFileList', id],
141
- queryFn: () => getDaeryunFileList({
142
- jwt: jwt ? jwt : jwt2,
143
- id: id
144
- }),
145
- gcTime: 0,
146
- staleTime: 0,
147
- enabled: enabled
148
- // onSuccess: res => {},
149
- // onError: error => {
150
- // console.log(error);
151
- // }
152
- });
153
- return { data, isLoading, refetch };
154
- };
155
- export const useActionPostCaseExamine = () => {
156
- const { mutateAsync, status } = useMutation({
157
- mutationFn: (_a) => __awaiter(void 0, [_a], void 0, function* ({ caseIdx, comment, idx, isApproved }) {
158
- return yield addMyCaseExamine({
159
- caseIdx: caseIdx,
160
- comment: comment,
161
- idx: idx,
162
- isApproved: isApproved
163
- });
164
- }),
165
- onSuccess: res => { },
166
- onError: error => {
167
- console.log(error);
168
- }
169
- });
170
- const isLoading = status === 'pending';
171
- return { mutateAsync, isLoading };
172
- };
173
134
  export const useActionPostMyCaseQuestion = (id, content, jwt) => {
174
135
  const { mutateAsync, status } = useMutation({
175
136
  mutationFn: () => __awaiter(void 0, void 0, void 0, function* () {
@@ -215,23 +176,3 @@ export const useActionPostMyFileUpload = (id) => {
215
176
  });
216
177
  return { mutateAsync };
217
178
  };
218
- export const useActionGetDocumentExamineHistory = ({ caseIdx, idx }) => {
219
- const { data, isLoading, isFetched, isFetching, error } = useQuery({
220
- queryKey: ['case', 'documentExamineHistory', caseIdx, idx],
221
- queryFn: () => getDocumentExamineHistory({ caseIdx: caseIdx, idx: idx }),
222
- gcTime: 0,
223
- staleTime: 0,
224
- enabled: !!idx && !!caseIdx
225
- });
226
- return { data, isLoading, isFetched, isFetching, error };
227
- };
228
- export const useActionViewHwpToPdf = (key) => {
229
- const { data, isLoading, isFetched, isFetching, error } = useQuery({
230
- queryKey: ['case', 'hwpToPdf', key],
231
- queryFn: () => getHwpToPdfFile({ key: key.toString() }),
232
- gcTime: 0,
233
- staleTime: 0,
234
- enabled: !!key
235
- });
236
- return { data, isLoading, isFetched, isFetching, error };
237
- };
@@ -10,10 +10,6 @@ import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
10
10
  import getCaseList from '../_fetchers/getCaseList';
11
11
  import getContact from '../_fetchers/getContact';
12
12
  import addMyFileUpload from '../_fetchers/addMyFileUpload';
13
- import getDaeryunFileList from '../_fetchers/getDaeryunFileList';
14
- import addMyCaseExamine from '../_fetchers/addMyCaseExamine';
15
- import getDocumentExamineHistory from '../_fetchers/getDocumentExamineHistory';
16
- import getHwpToPdfFile from '../_fetchers/getHwpToPdfFile';
17
13
 
18
14
  const jwt2 =
19
15
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
@@ -152,59 +148,6 @@ export const useActionGetMyCaseQuestion = (id: string, page: number, pageSize: n
152
148
  return { data, isLoading, refetch };
153
149
  };
154
150
 
155
- export const useActionGetDaeryunFileList = (id: string, jwt?: string, enabled?: boolean) => {
156
- const { data, isLoading, refetch } = useQuery<FetchType<FileList[]>>({
157
- queryKey: ['case', 'daeryunFileList', id],
158
- queryFn: () =>
159
- getDaeryunFileList({
160
- jwt: jwt ? jwt : jwt2,
161
- id: id as string
162
- }),
163
- gcTime: 0,
164
- staleTime: 0,
165
- enabled: enabled
166
- // onSuccess: res => {},
167
- // onError: error => {
168
- // console.log(error);
169
- // }
170
- });
171
- return { data, isLoading, refetch };
172
- };
173
-
174
- export const useActionPostCaseExamine = () => {
175
- const { mutateAsync, status } = useMutation<
176
- { result: boolean; data: any },
177
- unknown,
178
- { caseIdx: string; comment: string; idx: string; isApproved: boolean }
179
- >({
180
- mutationFn: async ({
181
- caseIdx,
182
- comment,
183
- idx,
184
- isApproved
185
- }: {
186
- caseIdx: string;
187
- comment: string;
188
- idx: string;
189
- isApproved: boolean;
190
- }) =>
191
- await addMyCaseExamine({
192
- caseIdx: caseIdx as string,
193
- comment: comment as string,
194
- idx: idx as string,
195
- isApproved: isApproved as boolean
196
- }),
197
-
198
- onSuccess: res => {},
199
- onError: error => {
200
- console.log(error);
201
- }
202
- });
203
-
204
- const isLoading = status === 'pending';
205
- return { mutateAsync, isLoading };
206
- };
207
-
208
151
  export const useActionPostMyCaseQuestion = (id: string, content: string, jwt?: string) => {
209
152
  const { mutateAsync, status } = useMutation<FetchType<Question[]>>({
210
153
  mutationFn: async () =>
@@ -261,25 +204,3 @@ export const useActionPostMyFileUpload = (id: string) => {
261
204
 
262
205
  return { mutateAsync };
263
206
  };
264
-
265
- export const useActionGetDocumentExamineHistory = ({ caseIdx, idx }: { caseIdx: string; idx: number }) => {
266
- const { data, isLoading, isFetched, isFetching, error } = useQuery<any>({
267
- queryKey: ['case', 'documentExamineHistory', caseIdx, idx],
268
- queryFn: () => getDocumentExamineHistory({ caseIdx: caseIdx as string, idx: idx as number }),
269
- gcTime: 0,
270
- staleTime: 0,
271
- enabled: (!!idx as boolean) && (!!caseIdx as boolean)
272
- });
273
- return { data, isLoading, isFetched, isFetching, error };
274
- };
275
-
276
- export const useActionViewHwpToPdf = (key: number) => {
277
- const { data, isLoading, isFetched, isFetching, error } = useQuery<any>({
278
- queryKey: ['case', 'hwpToPdf', key],
279
- queryFn: () => getHwpToPdfFile({ key: key.toString() }),
280
- gcTime: 0,
281
- staleTime: 0,
282
- enabled: !!key as boolean
283
- });
284
- return { data, isLoading, isFetched, isFetching, error };
285
- };
@@ -1,7 +1,9 @@
1
1
  import { twMerge } from 'tailwind-merge';
2
2
  const SubMenuButton = ({ onClick, title, isSelected, outerClassName }) => {
3
- return (<button className={twMerge(` lg:rouned-[25px] relative flex !h-[34px] !w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 sm-top:!h-[39px] sm-top:px-[16px] lg:!h-[49px] lg:rounded-[25px] lg:px-[28px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
4
- <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 !leading-none ${isSelected ? 'text-white' : 'text-grayScale3'}`}>
3
+ return (<button className={twMerge(` sm-top:body_large2_tb lg:body_medium2 flex !h-[34px] !w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 sm-top:h-[39px] sm-top:px-[16px] lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
4
+ <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 !leading-none`} style={{
5
+ color: isSelected ? 'white' : 'black'
6
+ }}>
5
7
  {title}
6
8
  </p>
7
9
  </button>);
@@ -14,7 +14,7 @@ const SubMenuButton = ({
14
14
  return (
15
15
  <button
16
16
  className={twMerge(
17
- ` lg:rouned-[25px] relative flex !h-[34px] !w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 sm-top:!h-[39px] sm-top:px-[16px] lg:!h-[49px] lg:rounded-[25px] lg:px-[28px] ${
17
+ ` sm-top:body_large2_tb lg:body_medium2 flex !h-[34px] !w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 sm-top:h-[39px] sm-top:px-[16px] lg:h-[41px] lg:px-[20px] ${
18
18
  isSelected ? 'bg-grayScale1' : 'bg-transparent'
19
19
  }`,
20
20
  outerClassName
@@ -22,7 +22,10 @@ const SubMenuButton = ({
22
22
  onClick={onClick}
23
23
  >
24
24
  <p
25
- className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 !leading-none ${isSelected ? 'text-white' : 'text-grayScale3'}`}
25
+ className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 !leading-none`}
26
+ style={{
27
+ color: isSelected ? 'white' : 'black'
28
+ }}
26
29
  >
27
30
  {title}
28
31
  </p>
@@ -1,7 +1,6 @@
1
- declare const EmptyTable: ({ tap, subTap, isMinHeight, titleLabel }: {
1
+ declare const EmptyTable: ({ tap, subTap, isMinHeight }: {
2
2
  tap: string;
3
3
  subTap: number;
4
4
  isMinHeight?: boolean;
5
- titleLabel?: string;
6
5
  }) => import("react").JSX.Element;
7
6
  export default EmptyTable;
@@ -44,12 +44,12 @@ const titleList = {
44
44
  },
45
45
  file: {
46
46
  0: {
47
- title: (ctx) => { var _a; return `${(_a = ctx.label) !== null && _a !== void 0 ? _a : '파일'}가 없어요.`; },
47
+ title: '현재 제출한 문서가 없어요.',
48
48
  subTitle: '',
49
49
  img: caseIcon4,
50
50
  width: 'w-[39.9px] sm-top:w-[49.4px] lg:w-[62.7px] ',
51
51
  height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
52
- marginTop: 'mt-[40px] sm-top:mt-[72px] lg:mt-[76px]'
52
+ marginTop: 'mt-[36px] sm-top:mt-[83px] lg:mt-[67px]'
53
53
  }
54
54
  },
55
55
  caseInquiry: {
@@ -73,8 +73,7 @@ const titleList = {
73
73
  }
74
74
  }
75
75
  };
76
- const resolveText = (val, ctx) => (typeof val === 'function' ? val(ctx) : val);
77
- const EmptyTable = ({ tap, subTap, isMinHeight = true, titleLabel }) => {
76
+ const EmptyTable = ({ tap, subTap, isMinHeight = true }) => {
78
77
  const selectedTitleList = titleList[tap];
79
78
  const selectedSubTap = selectedTitleList ? selectedTitleList[subTap] : null;
80
79
  const { title, subTitle, img, width, height, marginTop } = selectedSubTap || {
@@ -85,18 +84,11 @@ const EmptyTable = ({ tap, subTap, isMinHeight = true, titleLabel }) => {
85
84
  height: '',
86
85
  marginTop: ''
87
86
  };
88
- const ctx = {
89
- tap: tap,
90
- subTap,
91
- label: titleLabel
92
- };
93
- const titleText = resolveText(title, ctx);
94
- const subTitleText = resolveText(subTitle, ctx);
95
- return (<div className={`flex gap-[14px] sm-top:gap-[20px] ${isMinHeight ? 'min-h-[100px]' : ''} mb-[100px] w-full flex-col items-center lg:gap-[40px] ${marginTop}`}>
87
+ return (<div className={`flex gap-[14px] sm-top:gap-[20px] ${isMinHeight ? 'min-h-[100px]' : ''} w-full flex-col items-center lg:gap-[40px] ${marginTop}`}>
96
88
  <Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`}/>
97
89
  <div className="flex flex-col items-center justify-center ">
98
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{titleText}</p>
99
- {subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitleText}</p>}
90
+ <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
91
+ {subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitle}</p>}
100
92
  </div>
101
93
  </div>);
102
94
  };
@@ -7,14 +7,6 @@ import caseIcon4 from '../../../../../asset/images/myCase/icon/case_icon4.webp';
7
7
  import caseIcon5 from '../../../../../asset/images/myCase/icon/case_icon5.webp';
8
8
  import caseIcon6 from '../../../../../asset/images/myCase/icon/case_icon6.webp';
9
9
 
10
- type TitleFnCtx = {
11
- tap: keyof typeof titleList;
12
- subTap: number;
13
- label?: string; // 옵션
14
- };
15
-
16
- type TitleText = string | ((ctx: TitleFnCtx) => string);
17
-
18
10
  const titleList = {
19
11
  ongoing: {
20
12
  0: {
@@ -54,12 +46,12 @@ const titleList = {
54
46
  },
55
47
  file: {
56
48
  0: {
57
- title: (ctx: TitleFnCtx) => `${ctx.label ?? '파일'}가 없어요.`,
49
+ title: '현재 제출한 문서가 없어요.',
58
50
  subTitle: '',
59
51
  img: caseIcon4,
60
52
  width: 'w-[39.9px] sm-top:w-[49.4px] lg:w-[62.7px] ',
61
53
  height: 'h-[42px] sm-top:h-[52px] lg:h-[66px] ',
62
- marginTop: 'mt-[40px] sm-top:mt-[72px] lg:mt-[76px]'
54
+ marginTop: 'mt-[36px] sm-top:mt-[83px] lg:mt-[67px]'
63
55
  }
64
56
  },
65
57
  caseInquiry: {
@@ -84,19 +76,7 @@ const titleList = {
84
76
  }
85
77
  };
86
78
 
87
- const resolveText = (val: TitleText, ctx: TitleFnCtx) => (typeof val === 'function' ? val(ctx) : val);
88
-
89
- const EmptyTable = ({
90
- tap,
91
- subTap,
92
- isMinHeight = true,
93
- titleLabel
94
- }: {
95
- tap: string;
96
- subTap: number;
97
- isMinHeight?: boolean;
98
- titleLabel?: string;
99
- }) => {
79
+ const EmptyTable = ({ tap, subTap, isMinHeight = true }: { tap: string; subTap: number; isMinHeight?: boolean }) => {
100
80
  const selectedTitleList = titleList[tap as keyof typeof titleList];
101
81
  const selectedSubTap = selectedTitleList ? selectedTitleList[subTap as keyof typeof selectedTitleList] : null;
102
82
  const { title, subTitle, img, width, height, marginTop } = selectedSubTap || {
@@ -107,24 +87,16 @@ const EmptyTable = ({
107
87
  height: '',
108
88
  marginTop: ''
109
89
  };
110
- const ctx: TitleFnCtx = {
111
- tap: tap as TitleFnCtx['tap'],
112
- subTap,
113
- label: titleLabel
114
- };
115
-
116
- const titleText = resolveText(title, ctx);
117
- const subTitleText = resolveText(subTitle, ctx);
118
90
  return (
119
91
  <div
120
92
  className={`flex gap-[14px] sm-top:gap-[20px] ${
121
93
  isMinHeight ? 'min-h-[100px]' : ''
122
- } mb-[100px] w-full flex-col items-center lg:gap-[40px] ${marginTop}`}
94
+ } w-full flex-col items-center lg:gap-[40px] ${marginTop}`}
123
95
  >
124
96
  <Image src={img} alt="case_icon" width={60} height={60} className={`${width} ${height}`} />
125
97
  <div className="flex flex-col items-center justify-center ">
126
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{titleText}</p>
127
- {subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitleText}</p>}
98
+ <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>
99
+ {subTitle && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{subTitle}</p>}
128
100
  </div>
129
101
  </div>
130
102
  );
@@ -12,6 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import React, { useEffect, useRef, useState } from 'react';
13
13
  import Swiper from 'swiper';
14
14
  import { FreeMode, Scrollbar } from 'swiper/modules';
15
+ import { twMerge } from 'tailwind-merge';
15
16
  const CaseTabSwiper = (_a) => {
16
17
  var { children, id, containerClassName = '', scrollClassName = '' } = _a,
17
18
  // handleOnSubTap,
@@ -53,18 +54,12 @@ const CaseTabSwiper = (_a) => {
53
54
  };
54
55
  }, [id, children]);
55
56
  return (<div className="relative">
56
- <div id={id} className={' swiper relative ' + containerClassName} {...others}>
57
+ <div id={id} className={'swiper relative ' + containerClassName} {...others}>
57
58
  <span className={'swiper-wrapper '}>{children}</span>
58
59
 
59
60
  {/* 스크롤바 추가 */}
60
61
  </div>
61
- {/* <div
62
- id={`${id}-scrollbar`}
63
- className={twMerge(
64
- 'homepage-login-swiper-scrollbar !bottom-auto !left-[0px] !right-auto !top-[50px] !z-[50] ml-[20px] mt-[16px] !hidden !w-[calc(100%-40px)] border-b-[1px] border-solid border-grayScale4 2sm:ml-[40px] 2sm:!w-[calc(100%-80px)] ',
65
- scrollClassName
66
- )}
67
- /> */}
62
+ <div id={`${id}-scrollbar`} className={twMerge('homepage-login-swiper-scrollbar !bottom-auto !left-[0px] !right-auto !top-[50px] !z-[50] ml-[20px] mt-[16px] !hidden !w-[calc(100%-40px)] border-b-[1px] border-solid border-grayScale4 2sm:ml-[40px] 2sm:!w-[calc(100%-80px)] ', scrollClassName)}/>
68
63
  </div>);
69
64
  };
70
65
  export default CaseTabSwiper;
@@ -1,6 +1,7 @@
1
1
  import React, { ReactNode, useEffect, useRef, useState } from 'react';
2
2
  import Swiper from 'swiper';
3
3
  import { FreeMode, Scrollbar } from 'swiper/modules';
4
+ import { twMerge } from 'tailwind-merge';
4
5
 
5
6
  interface MobileSwiperProps extends React.HTMLAttributes<HTMLDivElement> {
6
7
  children: ReactNode;
@@ -59,18 +60,18 @@ const CaseTabSwiper: React.FC<MobileSwiperProps> = ({
59
60
 
60
61
  return (
61
62
  <div className="relative">
62
- <div id={id} className={' swiper relative ' + containerClassName} {...others}>
63
+ <div id={id} className={'swiper relative ' + containerClassName} {...others}>
63
64
  <span className={'swiper-wrapper '}>{children}</span>
64
65
 
65
66
  {/* 스크롤바 추가 */}
66
67
  </div>
67
- {/* <div
68
+ <div
68
69
  id={`${id}-scrollbar`}
69
70
  className={twMerge(
70
71
  'homepage-login-swiper-scrollbar !bottom-auto !left-[0px] !right-auto !top-[50px] !z-[50] ml-[20px] mt-[16px] !hidden !w-[calc(100%-40px)] border-b-[1px] border-solid border-grayScale4 2sm:ml-[40px] 2sm:!w-[calc(100%-80px)] ',
71
72
  scrollClassName
72
73
  )}
73
- /> */}
74
+ />
74
75
  </div>
75
76
  );
76
77
  };
@@ -33,7 +33,7 @@ export interface DetailList {
33
33
  }
34
34
  export type FetchType<T> = {
35
35
  data: T;
36
- result: boolean | any;
36
+ result: boolean;
37
37
  list: T[];
38
38
  totalLength: number;
39
39
  totalPageSize: number;
@@ -48,12 +48,10 @@ export type TimeLineItem = {
48
48
  };
49
49
  export type TimeLineData = TimeLineItem[][];
50
50
  export interface FileList {
51
- idx: number;
52
51
  name: string;
53
52
  path: string;
54
53
  size: string;
55
54
  created_at: string;
56
- review_status?: number | null;
57
55
  }
58
56
  export type Payment = {
59
57
  pay_type: string;
@@ -36,7 +36,7 @@ export interface DetailList {
36
36
 
37
37
  export type FetchType<T> = {
38
38
  data: T;
39
- result: boolean | any;
39
+ result: boolean;
40
40
  list: T[];
41
41
  totalLength: number;
42
42
  totalPageSize: number;
@@ -55,12 +55,10 @@ export type TimeLineItem = {
55
55
  export type TimeLineData = TimeLineItem[][];
56
56
 
57
57
  export interface FileList {
58
- idx: number; // 파일 인덱스
59
58
  name: string; // 이미지 이름
60
59
  path: string; // 이미지 경로 (URL)
61
60
  size: string; // 파일 크기
62
61
  created_at: string; // 생성 시간 (ISO 8601 형식)
63
- review_status?: number | null;
64
62
  }
65
63
 
66
64
  export type Payment = {