@daeryun/dr_components 0.2.73 → 0.2.74

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 (201) hide show
  1. package/dist/asset/images/myCase/arrow_2.webp +0 -0
  2. package/dist/asset/images/myCase/arrow_b.webp +0 -0
  3. package/dist/asset/images/myCase/arrow_b_w.webp +0 -0
  4. package/dist/asset/images/myCase/arrow_right.webp +0 -0
  5. package/dist/asset/images/myCase/background.svg +8 -0
  6. package/dist/asset/images/myCase/background.webp +0 -0
  7. package/dist/asset/images/myCase/background_mo.webp +0 -0
  8. package/dist/asset/images/myCase/background_tb.webp +0 -0
  9. package/dist/asset/images/myCase/home.svg +16 -0
  10. package/dist/asset/images/myCase/home.webp +0 -0
  11. package/dist/asset/images/myCase/icon/case_icon1.webp +0 -0
  12. package/dist/asset/images/myCase/icon/case_icon2.webp +0 -0
  13. package/dist/asset/images/myCase/icon/case_icon3.webp +0 -0
  14. package/dist/asset/images/myCase/icon/case_icon4.webp +0 -0
  15. package/dist/asset/images/myCase/icon/case_icon5.webp +0 -0
  16. package/dist/asset/images/myCase/icon/case_lookup_linkout.webp +0 -0
  17. package/dist/asset/images/myCase/icon/check_circle.webp +0 -0
  18. package/dist/asset/images/myCase/icon/check_circle2.webp +0 -0
  19. package/dist/asset/images/myCase/icon/client.webp +0 -0
  20. package/dist/asset/images/myCase/icon/close.webp +0 -0
  21. package/dist/asset/images/myCase/icon/daeryun.webp +0 -0
  22. package/dist/asset/images/myCase/icon/docs.webp +0 -0
  23. package/dist/asset/images/myCase/icon/download.webp +0 -0
  24. package/dist/asset/images/myCase/icon/hwp.webp +0 -0
  25. package/dist/asset/images/myCase/icon/ink_pen.webp +0 -0
  26. package/dist/asset/images/myCase/icon/jpg.webp +0 -0
  27. package/dist/asset/images/myCase/icon/modal_icon.webp +0 -0
  28. package/dist/asset/images/myCase/icon/pdf.webp +0 -0
  29. package/dist/asset/images/myCase/icon/png.webp +0 -0
  30. package/dist/asset/images/myCase/icon/unknown.webp +0 -0
  31. package/dist/asset/images/myCase/icon/word.webp +0 -0
  32. package/dist/asset/images/myCase/icon/xls.webp +0 -0
  33. package/dist/asset/images/myCase/nav_arr.webp +0 -0
  34. package/dist/asset/images/myCase/pagination/arrow_l_off.webp +0 -0
  35. package/dist/asset/images/myCase/pagination/arrow_l_on.webp +0 -0
  36. package/dist/asset/images/myCase/pagination/arrow_r_off.webp +0 -0
  37. package/dist/asset/images/myCase/pagination/arrow_r_on.webp +0 -0
  38. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  39. package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
  40. package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
  41. package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
  42. package/dist/components/Fix/Fix.stories.d.ts +3 -2
  43. package/dist/components/Footer/TopBtn.d.ts +1 -0
  44. package/dist/components/MapSection/Map.d.ts +1 -0
  45. package/dist/components/MapSection/MapSection.d.ts +1 -1
  46. package/dist/components/Mark/Mark.d.ts +1 -0
  47. package/dist/components/SelectBox/SelectBox.d.ts +8 -8
  48. package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
  49. package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
  50. package/dist/components/banner/TopBanner.d.ts +1 -0
  51. package/dist/components/banner/TopBanner.stories.d.ts +1 -0
  52. package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
  53. package/dist/components/page/Choice/Choice.d.ts +1 -1
  54. package/dist/components/page/MyCase/MyCase.stories.d.ts +6 -0
  55. package/dist/components/page/MyCase/MyCase.stories.jsx +17 -0
  56. package/dist/components/page/MyCase/MyCase.stories.tsx +25 -0
  57. package/dist/components/page/MyCase/MyCaseApp.d.ts +3 -0
  58. package/dist/components/page/MyCase/MyCaseApp.jsx +23 -0
  59. package/dist/components/page/MyCase/MyCaseApp.tsx +30 -0
  60. package/dist/components/page/MyCase/MyCasePage.d.ts +3 -0
  61. package/dist/components/page/MyCase/MyCasePage.jsx +23 -0
  62. package/dist/components/page/MyCase/MyCasePage.tsx +34 -0
  63. package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +6 -0
  64. package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +17 -0
  65. package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +25 -0
  66. package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +3 -0
  67. package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +68 -0
  68. package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +159 -0
  69. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +3 -0
  70. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +68 -0
  71. package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +159 -0
  72. package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +3 -0
  73. package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +79 -0
  74. package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +102 -0
  75. package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +7 -0
  76. package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +44 -0
  77. package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +94 -0
  78. package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +7 -0
  79. package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +46 -0
  80. package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +72 -0
  81. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +12 -0
  82. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +80 -0
  83. package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +188 -0
  84. package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +7 -0
  85. package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +35 -0
  86. package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +59 -0
  87. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +7 -0
  88. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +76 -0
  89. package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +94 -0
  90. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +8 -0
  91. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +107 -0
  92. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +150 -0
  93. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +8 -0
  94. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +25 -0
  95. package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +55 -0
  96. package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +8 -0
  97. package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +26 -0
  98. package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +39 -0
  99. package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +8 -0
  100. package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +4 -0
  101. package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +24 -0
  102. package/dist/components/page/MyCase/_actions/action.d.ts +35 -0
  103. package/dist/components/page/MyCase/_actions/action.js +145 -0
  104. package/dist/components/page/MyCase/_actions/action.ts +165 -0
  105. package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +3 -0
  106. package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +110 -0
  107. package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +247 -0
  108. package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +3 -0
  109. package/dist/components/page/MyCase/_component/CasePageContainer.jsx +119 -0
  110. package/dist/components/page/MyCase/_component/CasePageContainer.tsx +256 -0
  111. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +8 -0
  112. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +47 -0
  113. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +77 -0
  114. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +8 -0
  115. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +47 -0
  116. package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +77 -0
  117. package/dist/components/page/MyCase/_component/_button/Badge.d.ts +15 -0
  118. package/dist/components/page/MyCase/_component/_button/Badge.jsx +16 -0
  119. package/dist/components/page/MyCase/_component/_button/Badge.tsx +22 -0
  120. package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +8 -0
  121. package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +9 -0
  122. package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +33 -0
  123. package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +8 -0
  124. package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +9 -0
  125. package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +31 -0
  126. package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +7 -0
  127. package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +75 -0
  128. package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +85 -0
  129. package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +8 -0
  130. package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +11 -0
  131. package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +29 -0
  132. package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +12 -0
  133. package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +25 -0
  134. package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +41 -0
  135. package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +5 -0
  136. package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +4 -0
  137. package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +5 -0
  138. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.d.ts +10 -0
  139. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.jsx +31 -0
  140. package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +81 -0
  141. package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +3 -0
  142. package/dist/components/page/MyCase/_component/_loading/Loading.jsx +89 -0
  143. package/dist/components/page/MyCase/_component/_loading/Loading.tsx +92 -0
  144. package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +10 -0
  145. package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +82 -0
  146. package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +137 -0
  147. package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +10 -0
  148. package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +81 -0
  149. package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +135 -0
  150. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +9 -0
  151. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +65 -0
  152. package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +79 -0
  153. package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +10 -0
  154. package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +63 -0
  155. package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +94 -0
  156. package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +10 -0
  157. package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +11 -0
  158. package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +28 -0
  159. package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +6 -0
  160. package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +35 -0
  161. package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +43 -0
  162. package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +10 -0
  163. package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +11 -0
  164. package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +28 -0
  165. package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +6 -0
  166. package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +31 -0
  167. package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +22 -0
  168. package/dist/components/page/MyCase/_fetchers/getCase.d.ts +5 -0
  169. package/dist/components/page/MyCase/_fetchers/getCase.js +30 -0
  170. package/dist/components/page/MyCase/_fetchers/getCase.ts +21 -0
  171. package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +7 -0
  172. package/dist/components/page/MyCase/_fetchers/getCaseList.js +30 -0
  173. package/dist/components/page/MyCase/_fetchers/getCaseList.ts +24 -0
  174. package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +5 -0
  175. package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +30 -0
  176. package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +21 -0
  177. package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +7 -0
  178. package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +30 -0
  179. package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +24 -0
  180. package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +5 -0
  181. package/dist/components/page/MyCase/_fetchers/getMyFileList.js +30 -0
  182. package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +21 -0
  183. package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +5 -0
  184. package/dist/components/page/MyCase/_fetchers/getTimeLine.js +30 -0
  185. package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +21 -0
  186. package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +8 -0
  187. package/dist/components/page/MyCase/_lib/catagoryMenuName.js +8 -0
  188. package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +11 -0
  189. package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +15 -0
  190. package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +21 -0
  191. package/dist/components/page/MyCase/_type/type.d.ts +73 -0
  192. package/dist/components/page/MyCase/_type/type.js +1 -0
  193. package/dist/components/page/MyCase/_type/type.ts +81 -0
  194. package/dist/components/page/Strength/Strength.d.ts +1 -0
  195. package/dist/components/page/index.d.ts +4 -0
  196. package/dist/components/page/index.js +4 -0
  197. package/dist/components/page/index.ts +4 -0
  198. package/dist/lib/utils.js +4 -4
  199. package/dist/styles/globals.css +2087 -130
  200. package/dist/tsconfig.tsbuildinfo +1 -1
  201. package/package.json +1 -1
@@ -0,0 +1,165 @@
1
+ 'use client';
2
+ import { useMutation, useQuery } from '@tanstack/react-query';
3
+ import { FetchType, DetailList, TimeLineType, FileList, Question } from '../_type/type';
4
+ import getCase from '../_fetchers/getCase';
5
+ import getTimeLine from '../_fetchers/getTimeLine';
6
+ import { t } from 'i18next';
7
+ import getCourtFileList from '../_fetchers/getCourtFileList';
8
+ import getMyFileList from '../_fetchers/getMyFileList';
9
+ import getMyCaseQuestion from '../_fetchers/getMyCaseQuestion';
10
+ import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
11
+ import getCaseList from '../_fetchers/getCaseList';
12
+
13
+ const jwt =
14
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
15
+ // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsImVtYWlsIjoiNjAzMDgwNEBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzQwNDQ2Nzg1LCJleHAiOjE3NDA0ODI3ODV9.v_d7htci4fjLA5MqBXWxUqyNjsAm2GEcdRBO5se-DB8'; //빈거
16
+
17
+ export const useGetCaseList = ({
18
+ tapState,
19
+ subTapState,
20
+ pageNumber,
21
+ pageSize
22
+ }: {
23
+ tapState: string;
24
+ subTapState: string;
25
+ pageNumber: number;
26
+ pageSize: number;
27
+ }) => {
28
+ const { data, isLoading } = useQuery({
29
+ queryKey: ['case', tapState, subTapState, pageNumber, pageSize],
30
+ queryFn: () =>
31
+ getCaseList({
32
+ jwt: jwt,
33
+ size: pageSize,
34
+ state: subTapState as string,
35
+ page: pageNumber
36
+ }),
37
+ //브라우저 화면을 focus할 때 새로 api를 호출할 건지 설정하는 옵션
38
+ refetchOnWindowFocus: false,
39
+
40
+ //기본설정 cacheTime:5분, staleTime:0초, 값을 Infinity로 설정할 경우 api return 값이 바뀌지 않는 이상 서버에 새로 요청하지 않고 캐싱된 데이터를 영구적으로 사용하여 api 호출 최적화
41
+ // cacheTime: 0,
42
+ gcTime: 0,
43
+ staleTime: 0
44
+ });
45
+ return { data, isLoading };
46
+ };
47
+
48
+ export const useGetDetailList = (id: string) => {
49
+ const { data, isLoading } = useQuery<FetchType<DetailList>>({
50
+ queryKey: ['case', id],
51
+ queryFn: () =>
52
+ getCase({
53
+ jwt: jwt,
54
+ id: id as string
55
+ }),
56
+ //브라우저 화면을 focus할 때 새로 api를 호출할 건지 설정하는 옵션
57
+ refetchOnWindowFocus: false,
58
+ //기본설정 cacheTime:5분, staleTime:0초, 값을 Infinity로 설정할 경우 api return 값이 바뀌지 않는 이상 서버에 새로 요청하지 않고 캐싱된 데이터를 영구적으로 사용하여 api 호출 최적화
59
+ gcTime: 0,
60
+ staleTime: 0,
61
+ enabled: !!id
62
+ // onSuccess: res => {},
63
+ // onError: error => {
64
+ // console.log(error);
65
+ // }
66
+ });
67
+ return { data, isLoading };
68
+ };
69
+
70
+ export const useGetTimeLine = (id: string) => {
71
+ const { data, isLoading } = useQuery<FetchType<TimeLineType>>({
72
+ queryKey: ['case', 'timeline', id],
73
+ queryFn: () =>
74
+ getTimeLine({
75
+ jwt: jwt,
76
+ id: id as string
77
+ }),
78
+ gcTime: 0,
79
+ staleTime: 0,
80
+ enabled: !!id
81
+ // onSuccess: res => {},
82
+ // onError: error => {
83
+ // console.log(error);
84
+ // }
85
+ });
86
+ return { data, isLoading };
87
+ };
88
+
89
+ export const useGetCourtFileList = (id: string) => {
90
+ const { data, isLoading } = useQuery<FetchType<FileList[]>>({
91
+ queryKey: ['case', 'courtFileList', id],
92
+ queryFn: () =>
93
+ getCourtFileList({
94
+ jwt: jwt,
95
+ id: id as string
96
+ }),
97
+ gcTime: 0,
98
+ staleTime: 0,
99
+ enabled: !!id
100
+ // onSuccess: res => {},
101
+ // onError: error => {
102
+ // console.log(error);
103
+ // }
104
+ });
105
+ return { data, isLoading };
106
+ };
107
+
108
+ export const useGetMyFileList = (id: string) => {
109
+ const { data, isLoading } = useQuery<FetchType<FileList[]>>({
110
+ queryKey: ['case', 'myFileList', id],
111
+ queryFn: () =>
112
+ getMyFileList({
113
+ jwt: jwt,
114
+ id: id as string
115
+ }),
116
+ gcTime: 0,
117
+ staleTime: 0,
118
+ enabled: !!id
119
+ // onSuccess: res => {},
120
+ // onError: error => {
121
+ // console.log(error);
122
+ // }
123
+ });
124
+ return { data, isLoading };
125
+ };
126
+
127
+ export const useGetMyCaseQuestion = (id: string, page: number, pageSize: number) => {
128
+ const { data, isLoading, refetch } = useQuery<FetchType<Question[]>>({
129
+ queryKey: ['case', 'myCaseQuestion', id, page, pageSize],
130
+ queryFn: () =>
131
+ getMyCaseQuestion({
132
+ jwt: jwt,
133
+ id: id as string,
134
+ page: page,
135
+ size: pageSize
136
+ }),
137
+ gcTime: 0,
138
+ staleTime: 0,
139
+ enabled: !!id
140
+ // onSuccess: res => {},
141
+ // onError: error => {
142
+ // console.log(error);
143
+ // }
144
+ });
145
+ return { data, isLoading, refetch };
146
+ };
147
+
148
+ export const usePostMyCaseQuestion = (id: string, content: string) => {
149
+ const { mutateAsync, status } = useMutation<FetchType<Question[]>>({
150
+ mutationFn: async () =>
151
+ await addMyCaseQuestion({
152
+ jwt: jwt,
153
+ id: id as string,
154
+ content: content as string
155
+ }),
156
+
157
+ onSuccess: res => {},
158
+ onError: error => {
159
+ console.log(error);
160
+ }
161
+ });
162
+
163
+ const isLoading = status === 'pending';
164
+ return { mutateAsync, isLoading };
165
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CaseContainer: () => import("react").JSX.Element;
3
+ export default CaseContainer;
@@ -0,0 +1,110 @@
1
+ 'use client';
2
+ import { useEffect, useState } from 'react';
3
+ import CaseLayout from './_layout/CaseLayout';
4
+ import SubColor1Button from './_button/SubColor1Button';
5
+ import CaseTable from './_table/CaseTable';
6
+ import EmptyTable from './_empty/EmptyTable';
7
+ import { useRouter, useSearchParams } from 'next/navigation';
8
+ import Loading from './_loading/Loading';
9
+ import { useGetCaseList } from '../_actions/action';
10
+ import CaseTabSwiper from './_table/CaseTabSwiper';
11
+ import CaseTableMo from './_table/CaseTableMo';
12
+ const CaseTap = ({ title, type, tap, setTap }) => {
13
+ return (<button onClick={() => {
14
+ if (setTap) {
15
+ setTap(type);
16
+ }
17
+ }} className={`items-top sm-top:h-[40px] flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 lg:h-[45px] ${tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'}`}>
18
+ <p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
19
+ </button>);
20
+ };
21
+ const CaseContainer = () => {
22
+ var _a, _b, _c, _d, _e;
23
+ // const searchParams = useSearchParams();
24
+ const router = useRouter();
25
+ const searchParams = useSearchParams();
26
+ const { page, tap, subTap } = searchParams
27
+ ? Object.fromEntries(searchParams.entries())
28
+ : { page: 1, tap: 'ongoing', subTap: 'ongoing' };
29
+ const tapState = tap ? tap : 'ongoing';
30
+ const subTapState = subTap ? subTap : tap ? tap : 'ongoing';
31
+ const [pageSize, setPageSize] = useState(6);
32
+ const [caseList, setCaseList] = useState([]);
33
+ const [totalLength, setTotalLength] = useState(0);
34
+ // const [isLoading, setIsLoading] = useState(true);
35
+ const pageNumber = page ? Number(page) : 1;
36
+ const handleOnChange = (pageNum) => {
37
+ router.push(`/mycase?page=${pageNum}&tap=${tap}&subTap=${subTap}`);
38
+ };
39
+ const handleOnTap = (tap) => {
40
+ router.push(`/mycase?page=${page}&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
41
+ };
42
+ const handleOnSubTap = (subTap) => {
43
+ router.push(`/mycase?page=1&tap=${tap}&subTap=${subTap}`);
44
+ };
45
+ const { data, isLoading } = useGetCaseList({
46
+ tapState,
47
+ subTapState,
48
+ pageNumber,
49
+ pageSize
50
+ });
51
+ useEffect(() => {
52
+ const handleResize = () => {
53
+ setPageSize(window.innerWidth < 721 ? 3 : 6);
54
+ }; // 300ms 딜레이
55
+ window.addEventListener('resize', handleResize);
56
+ return () => window.removeEventListener('resize', handleResize);
57
+ }, []);
58
+ return (<CaseLayout outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] " innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'} isMobilePadding={false}>
59
+ <div className={''}>
60
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
61
+ <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap}/>
62
+ <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap}/>
63
+ </div>
64
+ <div className={'sm-top:px-[50px] sm-top:py-[16px] py-[22px] lg:my-[20px] lg:px-[60px]'}>
65
+ {tapState === 'ongoing' ? (<>
66
+ <div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
67
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('ongoing')} isSelected={subTapState === 'ongoing'}/>
68
+
69
+ <SubColor1Button title="사건접수" onClick={() => handleOnSubTap('사건접수')} isSelected={subTapState === '사건접수'}/>
70
+ <SubColor1Button title="사건검토" onClick={() => handleOnSubTap('사건검토')} isSelected={subTapState === '사건검토'}/>
71
+ <SubColor1Button title="변호사상담" onClick={() => handleOnSubTap('변호사상담')} isSelected={subTapState === '변호사상담'}/>
72
+
73
+ <SubColor1Button title="소송준비" onClick={() => handleOnSubTap('소송준비')} isSelected={subTapState === '소송준비'}/>
74
+ <SubColor1Button title="소송진행" onClick={() => handleOnSubTap('소송진행')} isSelected={subTapState === '소송진행'}/>
75
+ </div>
76
+ <div className="sm-top:hidden">
77
+ <CaseTabSwiper id="case-tab-swiper" scrollClassName="max-[585px]:!block">
78
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('ongoing')} isSelected={subTapState === 'ongoing'} outerClassName="ml-[20px] 2sm:ml-[40px]"/>
79
+
80
+ <SubColor1Button title="사건접수" onClick={() => handleOnSubTap('사건접수')} isSelected={subTapState === '사건접수'}/>
81
+ <SubColor1Button title="사건검토" onClick={() => handleOnSubTap('사건검토')} isSelected={subTapState === '사건검토'}/>
82
+ <SubColor1Button title="변호사상담" onClick={() => handleOnSubTap('변호사상담')} isSelected={subTapState === '변호사상담'}/>
83
+
84
+ <SubColor1Button title="소송준비" onClick={() => handleOnSubTap('소송준비')} isSelected={subTapState === '소송준비'}/>
85
+ <SubColor1Button title="소송진행" onClick={() => handleOnSubTap('소송진행')} isSelected={subTapState === '소송진행'}/>
86
+ </CaseTabSwiper>
87
+ </div>
88
+ </>) : (<>
89
+ <div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
90
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('closed')} isSelected={subTapState === 'closed'}/>
91
+ <SubColor1Button title="사건종결" onClick={() => handleOnSubTap('사건종결')} isSelected={subTapState === '사건종결'}/>
92
+ <SubColor1Button title="환불" onClick={() => handleOnSubTap('환불')} isSelected={subTapState === '환불'}/>
93
+ </div>
94
+ <div className="sm-top:hidden">
95
+ <CaseTabSwiper id="case-tab-swiper">
96
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('closed')} isSelected={subTapState === 'closed'} outerClassName="ml-[20px] 2sm:ml-[40px]"/>
97
+ <SubColor1Button title="사건종결" onClick={() => handleOnSubTap('사건종결')} isSelected={subTapState === '사건종결'}/>
98
+ <SubColor1Button title="환불" onClick={() => handleOnSubTap('환불')} isSelected={subTapState === '환불'}/>
99
+ </CaseTabSwiper>
100
+ </div>
101
+ </>)}
102
+ </div>
103
+ {isLoading ? (<Loading />) : ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.list.length) > 0 ? (<>
104
+ <CaseTable list={(_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.list} totalLength={(_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.totalLength} pageSize={pageSize} pageNumber={pageNumber} onChange={handleOnChange}/>
105
+ <CaseTableMo list={(_d = data === null || data === void 0 ? void 0 : data.data) === null || _d === void 0 ? void 0 : _d.list} totalLength={(_e = data === null || data === void 0 ? void 0 : data.data) === null || _e === void 0 ? void 0 : _e.totalLength} pageSize={pageSize} pageNumber={pageNumber} onChange={handleOnChange}/>
106
+ </>) : (<EmptyTable tap={tapState} subTap={subTapState === 'ongoing' || subTapState === 'closed' ? 0 : 1}/>)}
107
+ </div>
108
+ </CaseLayout>);
109
+ };
110
+ export default CaseContainer;
@@ -0,0 +1,247 @@
1
+ 'use client';
2
+ import { useEffect, useState } from 'react';
3
+ import CaseLayout from './_layout/CaseLayout';
4
+ import SubColor1Button from './_button/SubColor1Button';
5
+
6
+ import CaseTable from './_table/CaseTable';
7
+ import { Case } from '../_type/type';
8
+ import EmptyTable from './_empty/EmptyTable';
9
+ import { useRouter, useSearchParams } from 'next/navigation';
10
+ import Loading from './_loading/Loading';
11
+ import { useGetCaseList } from '../_actions/action';
12
+ import CaseTabSwiper from './_table/CaseTabSwiper';
13
+ import CaseTableMo from './_table/CaseTableMo';
14
+
15
+ const CaseTap = ({
16
+ title,
17
+ type,
18
+ tap,
19
+ setTap
20
+ }: {
21
+ title: string;
22
+ type: string;
23
+ tap: string;
24
+ setTap: (tap: string) => void;
25
+ }) => {
26
+ return (
27
+ <button
28
+ onClick={() => {
29
+ if (setTap) {
30
+ setTap(type);
31
+ }
32
+ }}
33
+ className={`items-top sm-top:h-[40px] flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 lg:h-[45px] ${
34
+ tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'
35
+ }`}
36
+ >
37
+ <p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
38
+ </button>
39
+ );
40
+ };
41
+
42
+ const CaseContainer = () => {
43
+ // const searchParams = useSearchParams();
44
+ const router = useRouter();
45
+ const searchParams = useSearchParams();
46
+ const { page, tap, subTap } = searchParams
47
+ ? Object.fromEntries(searchParams.entries())
48
+ : { page: 1, tap: 'ongoing', subTap: 'ongoing' };
49
+ const tapState = tap ? (tap as string) : 'ongoing';
50
+ const subTapState = subTap ? (subTap as string) : tap ? (tap as string) : 'ongoing';
51
+ const [pageSize, setPageSize] = useState(6);
52
+
53
+ const [caseList, setCaseList] = useState<Case[]>([]);
54
+ const [totalLength, setTotalLength] = useState(0);
55
+ // const [isLoading, setIsLoading] = useState(true);
56
+ const pageNumber = page ? Number(page) : 1;
57
+
58
+ const handleOnChange = (pageNum: number) => {
59
+ router.push(`/mycase?page=${pageNum}&tap=${tap}&subTap=${subTap}`);
60
+ };
61
+ const handleOnTap = (tap: string) => {
62
+ router.push(`/mycase?page=${page}&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
63
+ };
64
+ const handleOnSubTap = (subTap: string) => {
65
+ router.push(`/mycase?page=1&tap=${tap}&subTap=${subTap}`);
66
+ };
67
+
68
+ const { data, isLoading } = useGetCaseList({
69
+ tapState,
70
+ subTapState,
71
+ pageNumber,
72
+ pageSize
73
+ });
74
+ useEffect(() => {
75
+ const handleResize = () => {
76
+ setPageSize(window.innerWidth < 721 ? 3 : 6);
77
+ }; // 300ms 딜레이
78
+
79
+ window.addEventListener('resize', handleResize);
80
+ return () => window.removeEventListener('resize', handleResize);
81
+ }, []);
82
+
83
+ return (
84
+ <CaseLayout
85
+ outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] "
86
+ innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'}
87
+ isMobilePadding={false}
88
+ >
89
+ <div className={''}>
90
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
91
+ <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap} />
92
+ <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap} />
93
+ </div>
94
+ <div className={'sm-top:px-[50px] sm-top:py-[16px] py-[22px] lg:my-[20px] lg:px-[60px]'}>
95
+ {tapState === 'ongoing' ? (
96
+ <>
97
+ <div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
98
+ <SubColor1Button
99
+ title="전체"
100
+ onClick={() => handleOnSubTap('ongoing')}
101
+ isSelected={subTapState === 'ongoing'}
102
+ />
103
+
104
+ <SubColor1Button
105
+ title="사건접수"
106
+ onClick={() => handleOnSubTap('사건접수')}
107
+ isSelected={subTapState === '사건접수'}
108
+ />
109
+ <SubColor1Button
110
+ title="사건검토"
111
+ onClick={() => handleOnSubTap('사건검토')}
112
+ isSelected={subTapState === '사건검토'}
113
+ />
114
+ <SubColor1Button
115
+ title="변호사상담"
116
+ onClick={() => handleOnSubTap('변호사상담')}
117
+ isSelected={subTapState === '변호사상담'}
118
+ />
119
+
120
+ <SubColor1Button
121
+ title="소송준비"
122
+ onClick={() => handleOnSubTap('소송준비')}
123
+ isSelected={subTapState === '소송준비'}
124
+ />
125
+ <SubColor1Button
126
+ title="소송진행"
127
+ onClick={() => handleOnSubTap('소송진행')}
128
+ isSelected={subTapState === '소송진행'}
129
+ />
130
+ </div>
131
+ <div className="sm-top:hidden">
132
+ <CaseTabSwiper
133
+ id="case-tab-swiper"
134
+ scrollClassName="max-[585px]:!block"
135
+ // handleOnSubTap={handleOnSubTap}
136
+ // subTapState={subTapState}
137
+ >
138
+ <SubColor1Button
139
+ title="전체"
140
+ onClick={() => handleOnSubTap('ongoing')}
141
+ isSelected={subTapState === 'ongoing'}
142
+ outerClassName="ml-[20px] 2sm:ml-[40px]"
143
+ />
144
+
145
+ <SubColor1Button
146
+ title="사건접수"
147
+ onClick={() => handleOnSubTap('사건접수')}
148
+ isSelected={subTapState === '사건접수'}
149
+ />
150
+ <SubColor1Button
151
+ title="사건검토"
152
+ onClick={() => handleOnSubTap('사건검토')}
153
+ isSelected={subTapState === '사건검토'}
154
+ />
155
+ <SubColor1Button
156
+ title="변호사상담"
157
+ onClick={() => handleOnSubTap('변호사상담')}
158
+ isSelected={subTapState === '변호사상담'}
159
+ />
160
+
161
+ <SubColor1Button
162
+ title="소송준비"
163
+ onClick={() => handleOnSubTap('소송준비')}
164
+ isSelected={subTapState === '소송준비'}
165
+ />
166
+ <SubColor1Button
167
+ title="소송진행"
168
+ onClick={() => handleOnSubTap('소송진행')}
169
+ isSelected={subTapState === '소송진행'}
170
+ />
171
+ </CaseTabSwiper>
172
+ </div>
173
+ </>
174
+ ) : (
175
+ <>
176
+ <div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
177
+ <SubColor1Button
178
+ title="전체"
179
+ onClick={() => handleOnSubTap('closed')}
180
+ isSelected={subTapState === 'closed'}
181
+ />
182
+ <SubColor1Button
183
+ title="사건종결"
184
+ onClick={() => handleOnSubTap('사건종결')}
185
+ isSelected={subTapState === '사건종결'}
186
+ />
187
+ <SubColor1Button
188
+ title="환불"
189
+ onClick={() => handleOnSubTap('환불')}
190
+ isSelected={subTapState === '환불'}
191
+ />
192
+ </div>
193
+ <div className="sm-top:hidden">
194
+ <CaseTabSwiper
195
+ id="case-tab-swiper"
196
+ // handleOnSubTap={handleOnSubTap}
197
+ // subTapState={subTapState}
198
+ >
199
+ <SubColor1Button
200
+ title="전체"
201
+ onClick={() => handleOnSubTap('closed')}
202
+ isSelected={subTapState === 'closed'}
203
+ outerClassName="ml-[20px] 2sm:ml-[40px]"
204
+ />
205
+ <SubColor1Button
206
+ title="사건종결"
207
+ onClick={() => handleOnSubTap('사건종결')}
208
+ isSelected={subTapState === '사건종결'}
209
+ />
210
+ <SubColor1Button
211
+ title="환불"
212
+ onClick={() => handleOnSubTap('환불')}
213
+ isSelected={subTapState === '환불'}
214
+ />
215
+ </CaseTabSwiper>
216
+ </div>
217
+ </>
218
+ )}
219
+ </div>
220
+ {isLoading ? (
221
+ <Loading />
222
+ ) : data?.data?.list.length > 0 ? (
223
+ <>
224
+ <CaseTable
225
+ list={data?.data?.list}
226
+ totalLength={data?.data?.totalLength}
227
+ pageSize={pageSize}
228
+ pageNumber={pageNumber}
229
+ onChange={handleOnChange}
230
+ />
231
+ <CaseTableMo
232
+ list={data?.data?.list}
233
+ totalLength={data?.data?.totalLength}
234
+ pageSize={pageSize}
235
+ pageNumber={pageNumber}
236
+ onChange={handleOnChange}
237
+ />
238
+ </>
239
+ ) : (
240
+ <EmptyTable tap={tapState} subTap={subTapState === 'ongoing' || subTapState === 'closed' ? 0 : 1} />
241
+ )}
242
+ </div>
243
+ </CaseLayout>
244
+ );
245
+ };
246
+
247
+ export default CaseContainer;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CaseContainer: () => import("react").JSX.Element;
3
+ export default CaseContainer;
@@ -0,0 +1,119 @@
1
+ 'use client';
2
+ import { useEffect, useState } from 'react';
3
+ import CaseLayout from './_layout/CaseLayout';
4
+ import SubColor1Button from './_button/SubColor1Button';
5
+ import CaseTable from './_table/CaseTable';
6
+ import EmptyTable from './_empty/EmptyTable';
7
+ import { useRouter } from 'next/router';
8
+ import Loading from './_loading/Loading';
9
+ import { useGetCaseList } from '../_actions/action';
10
+ import CaseTabSwiper from './_table/CaseTabSwiper';
11
+ import CaseTableMoPage from './_table/CaseTableMoPage';
12
+ // import { useCompatibleRouter } from '../../../lib/router/useCompatibleRouter';
13
+ const CaseTap = ({ title, type, tap, setTap }) => {
14
+ return (<button onClick={() => {
15
+ if (setTap) {
16
+ setTap(type);
17
+ }
18
+ }} className={`items-top sm-top:h-[40px] flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 lg:h-[45px] ${tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'}`}>
19
+ <p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
20
+ </button>);
21
+ };
22
+ const CaseContainer = () => {
23
+ // const { router, searchParams } = useCompatibleRouter();
24
+ const router = useRouter();
25
+ const { page, tap, subTap } = router.query;
26
+ // const searchParams = useSearchParams();
27
+ // const searchParams = useSearchParams();
28
+ // const { page, tap, subTap } = searchParams ? Object.fromEntries(searchParams.entries()) : {};
29
+ const tapState = tap ? tap : 'ongoing';
30
+ const subTapState = subTap ? subTap : tap ? tap : 'ongoing';
31
+ const [pageSize, setPageSize] = useState(6);
32
+ // const [isLoading, setIsLoading] = useState(true);
33
+ const pageNumber = page ? Number(page) : 1;
34
+ const handleOnChange = (pageNum) => {
35
+ router.push({
36
+ pathname: '/mycase',
37
+ query: { page: pageNum, tap, subTap }
38
+ });
39
+ };
40
+ const handleOnTap = (tap) => {
41
+ router.push({
42
+ pathname: '/mycase',
43
+ query: { page, tap, subTap: tap === 'ongoing' ? 'ongoing' : 'closed' }
44
+ });
45
+ };
46
+ const handleOnSubTap = (subTap) => {
47
+ router.push({
48
+ pathname: '/mycase',
49
+ query: { page: 1, tap, subTap }
50
+ });
51
+ };
52
+ const { data, isLoading } = useGetCaseList({
53
+ tapState,
54
+ subTapState,
55
+ pageNumber,
56
+ pageSize
57
+ });
58
+ useEffect(() => {
59
+ const handleResize = () => {
60
+ setPageSize(window.innerWidth < 721 ? 3 : 6);
61
+ }; // 300ms 딜레이
62
+ window.addEventListener('resize', handleResize);
63
+ return () => window.removeEventListener('resize', handleResize);
64
+ }, []);
65
+ console.log(data);
66
+ console.log(data === null || data === void 0 ? void 0 : data.list);
67
+ return (<CaseLayout outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] " innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'} isMobilePadding={false}>
68
+ <div className={''}>
69
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
70
+ <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap}/>
71
+ <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap}/>
72
+ </div>
73
+ <div className={'sm-top:px-[50px] sm-top:py-[16px] py-[22px] lg:my-[20px] lg:px-[60px]'}>
74
+ {tapState === 'ongoing' ? (<>
75
+ <div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
76
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('ongoing')} isSelected={subTapState === 'ongoing'}/>
77
+
78
+ <SubColor1Button title="사건접수" onClick={() => handleOnSubTap('사건접수')} isSelected={subTapState === '사건접수'}/>
79
+ <SubColor1Button title="사건검토" onClick={() => handleOnSubTap('사건검토')} isSelected={subTapState === '사건검토'}/>
80
+ <SubColor1Button title="변호사상담" onClick={() => handleOnSubTap('변호사상담')} isSelected={subTapState === '변호사상담'}/>
81
+
82
+ <SubColor1Button title="소송준비" onClick={() => handleOnSubTap('소송준비')} isSelected={subTapState === '소송준비'}/>
83
+ <SubColor1Button title="소송진행" onClick={() => handleOnSubTap('소송진행')} isSelected={subTapState === '소송진행'}/>
84
+ </div>
85
+ <div className="sm-top:hidden">
86
+ <CaseTabSwiper id="case-tab-swiper" scrollClassName="max-[585px]:!block">
87
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('ongoing')} isSelected={subTapState === 'ongoing'} outerClassName="ml-[20px] 2sm:ml-[40px]"/>
88
+
89
+ <SubColor1Button title="사건접수" onClick={() => handleOnSubTap('사건접수')} isSelected={subTapState === '사건접수'}/>
90
+ <SubColor1Button title="사건검토" onClick={() => handleOnSubTap('사건검토')} isSelected={subTapState === '사건검토'}/>
91
+ <SubColor1Button title="변호사상담" onClick={() => handleOnSubTap('변호사상담')} isSelected={subTapState === '변호사상담'}/>
92
+
93
+ <SubColor1Button title="소송준비" onClick={() => handleOnSubTap('소송준비')} isSelected={subTapState === '소송준비'}/>
94
+ <SubColor1Button title="소송진행" onClick={() => handleOnSubTap('소송진행')} isSelected={subTapState === '소송진행'}/>
95
+ </CaseTabSwiper>
96
+ </div>
97
+ </>) : (<>
98
+ <div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
99
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('closed')} isSelected={subTapState === 'closed'}/>
100
+ <SubColor1Button title="사건종결" onClick={() => handleOnSubTap('사건종결')} isSelected={subTapState === '사건종결'}/>
101
+ <SubColor1Button title="환불" onClick={() => handleOnSubTap('환불')} isSelected={subTapState === '환불'}/>
102
+ </div>
103
+ <div className="sm-top:hidden">
104
+ <CaseTabSwiper id="case-tab-swiper">
105
+ <SubColor1Button title="전체" onClick={() => handleOnSubTap('closed')} isSelected={subTapState === 'closed'} outerClassName="ml-[20px] 2sm:ml-[40px]"/>
106
+ <SubColor1Button title="사건종결" onClick={() => handleOnSubTap('사건종결')} isSelected={subTapState === '사건종결'}/>
107
+ <SubColor1Button title="환불" onClick={() => handleOnSubTap('환불')} isSelected={subTapState === '환불'}/>
108
+ </CaseTabSwiper>
109
+ </div>
110
+ </>)}
111
+ </div>
112
+ {isLoading ? (<Loading />) : (data === null || data === void 0 ? void 0 : data.list.length) > 0 ? (<>
113
+ <CaseTable list={data === null || data === void 0 ? void 0 : data.list} totalLength={data === null || data === void 0 ? void 0 : data.totalLength} pageSize={pageSize} pageNumber={pageNumber} onChange={handleOnChange}/>
114
+ <CaseTableMoPage list={data === null || data === void 0 ? void 0 : data.list} totalLength={data === null || data === void 0 ? void 0 : data.totalLength} pageSize={pageSize} pageNumber={pageNumber} onChange={handleOnChange}/>
115
+ </>) : (<EmptyTable tap={tapState} subTap={subTapState === 'ongoing' || subTapState === 'closed' ? 0 : 1}/>)}
116
+ </div>
117
+ </CaseLayout>);
118
+ };
119
+ export default CaseContainer;