@daeryun/dr_components 0.3.22 → 0.3.23

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.
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import React, { useState } from 'react';
2
+ import React, { useState, Suspense } from 'react';
3
3
  import { useTranslation } from 'next-i18next';
4
4
  import IntroWrapper from '../_component/_layout/IntroWrapper';
5
5
  import SubMenuButton from '../_component/_button/SubMenuButton';
@@ -30,50 +30,52 @@ const MyCaseDetailPage = ({ jwt }) => {
30
30
  // const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id as string, jwt);
31
31
  // const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id as string, jwt);
32
32
  const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = actionGetMyCaseQuestion(id, pageNumber, pageSize, jwt);
33
- return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
34
- <IntroWrapper title={'상세 사건 정보'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundTbImage={backgroundTb} backgroundMoImage={backgroundMo} outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"/>
33
+ return (<Suspense>
34
+ <div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
35
+ <IntroWrapper title={'상세 사건 정보'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundTbImage={backgroundTb} backgroundMoImage={backgroundMo} outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"/>
35
36
 
36
- <div className={'relative z-[1] '}>
37
- {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
38
- <HeaderLayout>
39
- <div className="sm-top:mt-[283px] mt-[210px] lg:mt-[302px] ">
40
- <div className="sm-top:gap-[32px] flex items-center justify-center gap-[16px] max-[415px]:hidden lg:gap-[28px]">
41
- <SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')}/>
42
- <SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
43
- {/* <SubMenuButton
44
- title="문서함"
45
- isSelected={selected === '문서함'}
46
- onClick={() => setSelected('문서함')}
47
- /> */}
48
- <SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
49
- <SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')}/>
50
- </div>
51
- <div className="hidden max-[415px]:block 2sm:pl-[40px]">
52
- <CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[415px]:!block">
53
- <SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px]"/>
37
+ <div className={'relative z-[1] '}>
38
+ {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
39
+ <HeaderLayout>
40
+ <div className="sm-top:mt-[283px] mt-[210px] lg:mt-[302px] ">
41
+ <div className="sm-top:gap-[32px] flex items-center justify-center gap-[16px] max-[415px]:hidden lg:gap-[28px]">
42
+ <SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')}/>
54
43
  <SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
55
44
  {/* <SubMenuButton
56
- title="문서함"
57
- isSelected={selected === '문서함'}
58
- onClick={() => setSelected('문서함')}
59
- /> */}
45
+ title="문서함"
46
+ isSelected={selected === '문서함'}
47
+ onClick={() => setSelected('문서함')}
48
+ /> */}
60
49
  <SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
61
- <SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')} outerClassName="!mr-[0px]"/>
62
- </CaseTabSwiper>
50
+ <SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')}/>
51
+ </div>
52
+ <div className="hidden max-[415px]:block 2sm:pl-[40px]">
53
+ <CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[415px]:!block">
54
+ <SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px]"/>
55
+ <SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
56
+ {/* <SubMenuButton
57
+ title="문서함"
58
+ isSelected={selected === '문서함'}
59
+ onClick={() => setSelected('문서함')}
60
+ /> */}
61
+ <SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
62
+ <SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')} outerClassName="!mr-[0px]"/>
63
+ </CaseTabSwiper>
64
+ </div>
63
65
  </div>
64
- </div>
65
- {selected === '사건 정보' && (<DetailInfo detailList={detailList === null || detailList === void 0 ? void 0 : detailList.data} isLoading={detailListLoading}/>)}
66
- {selected === '사건 타임라인' && (<TimeLine timeLine={timeLine === null || timeLine === void 0 ? void 0 : timeLine.list} isLoading={timeLineLoading}/>)}
67
- {/* {selected === '문서함' && (
68
- <Document
69
- courtFileList={courtFileList?.data as FileList[]}
70
- myFileList={myFileList?.data as FileList[]}
71
- />
72
- )} */}
73
- {selected === '계약정보' && <ContactInfo />}
74
- {selected === '사건문의' && (<CaseInquiry myCaseQuestion={myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.list} id={id} refetch={myCaseQuestionRefetch} pageSize={pageSize} totalLength={(_a = myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.totalLength) !== null && _a !== void 0 ? _a : 0} pageNumber={pageNumber} onChange={() => { }}/>)}
75
- </HeaderLayout>
66
+ {selected === '사건 정보' && (<DetailInfo detailList={detailList === null || detailList === void 0 ? void 0 : detailList.data} isLoading={detailListLoading}/>)}
67
+ {selected === '사건 타임라인' && (<TimeLine timeLine={timeLine === null || timeLine === void 0 ? void 0 : timeLine.list} isLoading={timeLineLoading}/>)}
68
+ {/* {selected === '문서함' && (
69
+ <Document
70
+ courtFileList={courtFileList?.data as FileList[]}
71
+ myFileList={myFileList?.data as FileList[]}
72
+ />
73
+ )} */}
74
+ {selected === '계약정보' && <ContactInfo />}
75
+ {selected === '사건문의' && (<CaseInquiry myCaseQuestion={myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.list} id={id} refetch={myCaseQuestionRefetch} pageSize={pageSize} totalLength={(_a = myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.totalLength) !== null && _a !== void 0 ? _a : 0} pageNumber={pageNumber} onChange={() => { }}/>)}
76
+ </HeaderLayout>
77
+ </div>
76
78
  </div>
77
- </div>);
79
+ </Suspense>);
78
80
  };
79
81
  export default MyCaseDetailPage;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import React, { useEffect, useState } from 'react';
3
+ import React, { useEffect, useState, Suspense } from 'react';
4
4
  import { useTranslation } from 'next-i18next';
5
5
  import IntroWrapper from '../_component/_layout/IntroWrapper';
6
6
  import CaseLayout from '../_component/_layout/CaseLayout';
@@ -43,54 +43,26 @@ const MyCaseDetailPage = ({ jwt }: { jwt?: string }) => {
43
43
  } = actionGetMyCaseQuestion(id as string, pageNumber, pageSize, jwt);
44
44
 
45
45
  return (
46
- <div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
47
- <IntroWrapper
48
- title={'상세 사건 정보'}
49
- subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
50
- backgroundImage={background}
51
- backgroundTbImage={backgroundTb}
52
- backgroundMoImage={backgroundMo}
53
- outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"
54
- />
46
+ <Suspense>
47
+ <div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
48
+ <IntroWrapper
49
+ title={'상세 사건 정보'}
50
+ subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
51
+ backgroundImage={background}
52
+ backgroundTbImage={backgroundTb}
53
+ backgroundMoImage={backgroundMo}
54
+ outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"
55
+ />
55
56
 
56
- <div className={'relative z-[1] '}>
57
- {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
58
- <HeaderLayout>
59
- <div className="sm-top:mt-[283px] mt-[210px] lg:mt-[302px] ">
60
- <div className="sm-top:gap-[32px] flex items-center justify-center gap-[16px] max-[415px]:hidden lg:gap-[28px]">
61
- <SubMenuButton
62
- title="사건 정보"
63
- isSelected={selected === '사건 정보'}
64
- onClick={() => setSelected('사건 정보')}
65
- />
66
- <SubMenuButton
67
- title="사건 타임라인"
68
- isSelected={selected === '사건 타임라인'}
69
- onClick={() => setSelected('사건 타임라인')}
70
- />
71
- {/* <SubMenuButton
72
- title="문서함"
73
- isSelected={selected === '문서함'}
74
- onClick={() => setSelected('문서함')}
75
- /> */}
76
- <SubMenuButton
77
- title="계약정보"
78
- isSelected={selected === '계약정보'}
79
- onClick={() => setSelected('계약정보')}
80
- />
81
- <SubMenuButton
82
- title="사건문의"
83
- isSelected={selected === '사건문의'}
84
- onClick={() => setSelected('사건문의')}
85
- />
86
- </div>
87
- <div className="hidden max-[415px]:block 2sm:pl-[40px]">
88
- <CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[415px]:!block">
57
+ <div className={'relative z-[1] '}>
58
+ {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
59
+ <HeaderLayout>
60
+ <div className="sm-top:mt-[283px] mt-[210px] lg:mt-[302px] ">
61
+ <div className="sm-top:gap-[32px] flex items-center justify-center gap-[16px] max-[415px]:hidden lg:gap-[28px]">
89
62
  <SubMenuButton
90
63
  title="사건 정보"
91
64
  isSelected={selected === '사건 정보'}
92
65
  onClick={() => setSelected('사건 정보')}
93
- outerClassName="ml-[20px]"
94
66
  />
95
67
  <SubMenuButton
96
68
  title="사건 타임라인"
@@ -98,10 +70,10 @@ const MyCaseDetailPage = ({ jwt }: { jwt?: string }) => {
98
70
  onClick={() => setSelected('사건 타임라인')}
99
71
  />
100
72
  {/* <SubMenuButton
101
- title="문서함"
102
- isSelected={selected === '문서함'}
103
- onClick={() => setSelected('문서함')}
104
- /> */}
73
+ title="문서함"
74
+ isSelected={selected === '문서함'}
75
+ onClick={() => setSelected('문서함')}
76
+ /> */}
105
77
  <SubMenuButton
106
78
  title="계약정보"
107
79
  isSelected={selected === '계약정보'}
@@ -111,41 +83,71 @@ const MyCaseDetailPage = ({ jwt }: { jwt?: string }) => {
111
83
  title="사건문의"
112
84
  isSelected={selected === '사건문의'}
113
85
  onClick={() => setSelected('사건문의')}
114
- outerClassName="!mr-[0px]"
115
86
  />
116
- </CaseTabSwiper>
87
+ </div>
88
+ <div className="hidden max-[415px]:block 2sm:pl-[40px]">
89
+ <CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[415px]:!block">
90
+ <SubMenuButton
91
+ title="사건 정보"
92
+ isSelected={selected === '사건 정보'}
93
+ onClick={() => setSelected('사건 정보')}
94
+ outerClassName="ml-[20px]"
95
+ />
96
+ <SubMenuButton
97
+ title="사건 타임라인"
98
+ isSelected={selected === '사건 타임라인'}
99
+ onClick={() => setSelected('사건 타임라인')}
100
+ />
101
+ {/* <SubMenuButton
102
+ title="문서함"
103
+ isSelected={selected === '문서함'}
104
+ onClick={() => setSelected('문서함')}
105
+ /> */}
106
+ <SubMenuButton
107
+ title="계약정보"
108
+ isSelected={selected === '계약정보'}
109
+ onClick={() => setSelected('계약정보')}
110
+ />
111
+ <SubMenuButton
112
+ title="사건문의"
113
+ isSelected={selected === '사건문의'}
114
+ onClick={() => setSelected('사건문의')}
115
+ outerClassName="!mr-[0px]"
116
+ />
117
+ </CaseTabSwiper>
118
+ </div>
117
119
  </div>
118
- </div>
119
- {selected === '사건 정보' && (
120
- <DetailInfo detailList={detailList?.data as DetailList} isLoading={detailListLoading} />
121
- )}
122
- {selected === '사건 타임라인' && (
123
- <TimeLine
124
- timeLine={timeLine?.list as unknown as TimeLineType[][]}
125
- isLoading={timeLineLoading}
126
- />
127
- )}
128
- {/* {selected === '문서함' && (
120
+ {selected === '사건 정보' && (
121
+ <DetailInfo detailList={detailList?.data as DetailList} isLoading={detailListLoading} />
122
+ )}
123
+ {selected === '사건 타임라인' && (
124
+ <TimeLine
125
+ timeLine={timeLine?.list as unknown as TimeLineType[][]}
126
+ isLoading={timeLineLoading}
127
+ />
128
+ )}
129
+ {/* {selected === '문서함' && (
129
130
  <Document
130
131
  courtFileList={courtFileList?.data as FileList[]}
131
132
  myFileList={myFileList?.data as FileList[]}
132
133
  />
133
134
  )} */}
134
- {selected === '계약정보' && <ContactInfo />}
135
- {selected === '사건문의' && (
136
- <CaseInquiry
137
- myCaseQuestion={myCaseQuestion?.list as unknown as Question[]}
138
- id={id as string}
139
- refetch={myCaseQuestionRefetch}
140
- pageSize={pageSize}
141
- totalLength={myCaseQuestion?.totalLength ?? 0}
142
- pageNumber={pageNumber}
143
- onChange={() => {}}
144
- />
145
- )}
146
- </HeaderLayout>
135
+ {selected === '계약정보' && <ContactInfo />}
136
+ {selected === '사건문의' && (
137
+ <CaseInquiry
138
+ myCaseQuestion={myCaseQuestion?.list as unknown as Question[]}
139
+ id={id as string}
140
+ refetch={myCaseQuestionRefetch}
141
+ pageSize={pageSize}
142
+ totalLength={myCaseQuestion?.totalLength ?? 0}
143
+ pageNumber={pageNumber}
144
+ onChange={() => {}}
145
+ />
146
+ )}
147
+ </HeaderLayout>
148
+ </div>
147
149
  </div>
148
- </div>
150
+ </Suspense>
149
151
  );
150
152
  };
151
153
 
@@ -1,4 +1,4 @@
1
- import { useState } from 'react';
1
+ import { useState, Suspense } from 'react';
2
2
  import CaseLayout from './_layout/CaseLayout';
3
3
  import EmptyTable from './_empty/EmptyTable';
4
4
  import { useRouter, useSearchParams } from 'next/navigation';
@@ -47,20 +47,62 @@ const CaseContainer = ({ jwt }) => {
47
47
  // window.addEventListener('resize', handleResize);
48
48
  // return () => window.removeEventListener('resize', handleResize);
49
49
  // }, []);
50
- return (<CaseLayout outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] " innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'} isMobilePadding={false}>
51
- <div className={''}>
52
- <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
53
- <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap}/>
54
- <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap}/>
50
+ return (<Suspense>
51
+ <CaseLayout outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] " innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'} isMobilePadding={false}>
52
+ <div className={''}>
53
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
54
+ <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap}/>
55
+ <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap}/>
56
+ </div>
57
+ {/* <div className={'py-[22px] sm-top:px-[50px] sm-top:py-[16px] lg:my-[20px] lg:px-[60px]'}>
58
+ {tapState === 'ongoing' ? (
59
+ <>
60
+ <div className="flex flex-row max-sm-top:hidden sm-top:gap-[12px] md2:gap-[20px] lg:gap-[28px] ">
61
+ <SubColor1Button
62
+ title="전체"
63
+ onClick={() => handleOnSubTap('ongoing')}
64
+ isSelected={subTapState === 'ongoing'}
65
+ />
66
+
67
+ <SubColor1Button
68
+ title="사건접수"
69
+ onClick={() => handleOnSubTap('사건접수')}
70
+ isSelected={subTapState === '사건접수'}
71
+ />
72
+ <SubColor1Button
73
+ title="사건검토"
74
+ onClick={() => handleOnSubTap('사건검토')}
75
+ isSelected={subTapState === '사건검토'}
76
+ />
77
+ <SubColor1Button
78
+ title="변호사상담"
79
+ onClick={() => handleOnSubTap('변호사상담')}
80
+ isSelected={subTapState === '변호사상담'}
81
+ />
82
+
83
+ <SubColor1Button
84
+ title="소송준비"
85
+ onClick={() => handleOnSubTap('소송준비')}
86
+ isSelected={subTapState === '소송준비'}
87
+ />
88
+ <SubColor1Button
89
+ title="소송진행"
90
+ onClick={() => handleOnSubTap('소송진행')}
91
+ isSelected={subTapState === '소송진행'}
92
+ />
55
93
  </div>
56
- {/* <div className={'py-[22px] sm-top:px-[50px] sm-top:py-[16px] lg:my-[20px] lg:px-[60px]'}>
57
- {tapState === 'ongoing' ? (
58
- <>
59
- <div className="flex flex-row max-sm-top:hidden sm-top:gap-[12px] md2:gap-[20px] lg:gap-[28px] ">
94
+ <div className="sm-top:hidden">
95
+ <CaseTabSwiper
96
+ id="case-tab-swiper"
97
+ scrollClassName="max-[585px]:!block"
98
+ // handleOnSubTap={handleOnSubTap}
99
+ // subTapState={subTapState}
100
+ >
60
101
  <SubColor1Button
61
102
  title="전체"
62
103
  onClick={() => handleOnSubTap('ongoing')}
63
104
  isSelected={subTapState === 'ongoing'}
105
+ outerClassName="ml-[20px] 2sm:ml-[40px]"
64
106
  />
65
107
 
66
108
  <SubColor1Button
@@ -89,57 +131,39 @@ const CaseContainer = ({ jwt }) => {
89
131
  onClick={() => handleOnSubTap('소송진행')}
90
132
  isSelected={subTapState === '소송진행'}
91
133
  />
92
- </div>
93
- <div className="sm-top:hidden">
94
- <CaseTabSwiper
95
- id="case-tab-swiper"
96
- scrollClassName="max-[585px]:!block"
97
- // handleOnSubTap={handleOnSubTap}
98
- // subTapState={subTapState}
99
- >
100
- <SubColor1Button
101
- title="전체"
102
- onClick={() => handleOnSubTap('ongoing')}
103
- isSelected={subTapState === 'ongoing'}
104
- outerClassName="ml-[20px] 2sm:ml-[40px]"
105
- />
106
-
107
- <SubColor1Button
108
- title="사건접수"
109
- onClick={() => handleOnSubTap('사건접수')}
110
- isSelected={subTapState === '사건접수'}
111
- />
112
- <SubColor1Button
113
- title="사건검토"
114
- onClick={() => handleOnSubTap('사건검토')}
115
- isSelected={subTapState === '사건검토'}
116
- />
117
- <SubColor1Button
118
- title="변호사상담"
119
- onClick={() => handleOnSubTap('변호사상담')}
120
- isSelected={subTapState === '변호사상담'}
121
- />
122
-
123
- <SubColor1Button
124
- title="소송준비"
125
- onClick={() => handleOnSubTap('소송준비')}
126
- isSelected={subTapState === '소송준비'}
127
- />
128
- <SubColor1Button
129
- title="소송진행"
130
- onClick={() => handleOnSubTap('소송진행')}
131
- isSelected={subTapState === '소송진행'}
132
- />
133
- </CaseTabSwiper>
134
- </div>
135
- </>
136
- ) : (
137
- <>
138
- <div className="flex flex-row max-sm-top:hidden sm-top:gap-[12px] md2:gap-[20px] lg:gap-[28px] ">
134
+ </CaseTabSwiper>
135
+ </div>
136
+ </>
137
+ ) : (
138
+ <>
139
+ <div className="flex flex-row max-sm-top:hidden sm-top:gap-[12px] md2:gap-[20px] lg:gap-[28px] ">
140
+ <SubColor1Button
141
+ title="전체"
142
+ onClick={() => handleOnSubTap('closed')}
143
+ isSelected={subTapState === 'closed'}
144
+ />
145
+ <SubColor1Button
146
+ title="사건종결"
147
+ onClick={() => handleOnSubTap('사건종결')}
148
+ isSelected={subTapState === '사건종결'}
149
+ />
150
+ <SubColor1Button
151
+ title="환불"
152
+ onClick={() => handleOnSubTap('환불')}
153
+ isSelected={subTapState === '환불'}
154
+ />
155
+ </div>
156
+ <div className="sm-top:hidden">
157
+ <CaseTabSwiper
158
+ id="case-tab-swiper"
159
+ // handleOnSubTap={handleOnSubTap}
160
+ // subTapState={subTapState}
161
+ >
139
162
  <SubColor1Button
140
163
  title="전체"
141
164
  onClick={() => handleOnSubTap('closed')}
142
165
  isSelected={subTapState === 'closed'}
166
+ outerClassName="ml-[20px] 2sm:ml-[40px]"
143
167
  />
144
168
  <SubColor1Button
145
169
  title="사건종결"
@@ -151,45 +175,23 @@ const CaseContainer = ({ jwt }) => {
151
175
  onClick={() => handleOnSubTap('환불')}
152
176
  isSelected={subTapState === '환불'}
153
177
  />
154
- </div>
155
- <div className="sm-top:hidden">
156
- <CaseTabSwiper
157
- id="case-tab-swiper"
158
- // handleOnSubTap={handleOnSubTap}
159
- // subTapState={subTapState}
160
- >
161
- <SubColor1Button
162
- title="전체"
163
- onClick={() => handleOnSubTap('closed')}
164
- isSelected={subTapState === 'closed'}
165
- outerClassName="ml-[20px] 2sm:ml-[40px]"
166
- />
167
- <SubColor1Button
168
- title="사건종결"
169
- onClick={() => handleOnSubTap('사건종결')}
170
- isSelected={subTapState === '사건종결'}
171
- />
172
- <SubColor1Button
173
- title="환불"
174
- onClick={() => handleOnSubTap('환불')}
175
- isSelected={subTapState === '환불'}
176
- />
177
- </CaseTabSwiper>
178
- </div>
179
- </>
180
- )}
181
- </div> */}
182
- {isLoading ? (<Loading />) : (data === null || data === void 0 ? void 0 : data.list.length) > 0 ? (<>
183
- {/* <CaseTable
184
- list={data?.list}
185
- totalLength={data?.totalLength}
186
- pageSize={pageSize}
187
- pageNumber={pageNumber}
188
- onChange={handleOnChange}
189
- /> */}
190
- <CaseTableMo 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}/>
191
- </>) : (<EmptyTable tap={tapState} subTap={0}/>)}
192
- </div>
193
- </CaseLayout>);
178
+ </CaseTabSwiper>
179
+ </div>
180
+ </>
181
+ )}
182
+ </div> */}
183
+ {isLoading ? (<Loading />) : (data === null || data === void 0 ? void 0 : data.list.length) > 0 ? (<>
184
+ {/* <CaseTable
185
+ list={data?.list}
186
+ totalLength={data?.totalLength}
187
+ pageSize={pageSize}
188
+ pageNumber={pageNumber}
189
+ onChange={handleOnChange}
190
+ /> */}
191
+ <CaseTableMo 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}/>
192
+ </>) : (<EmptyTable tap={tapState} subTap={0}/>)}
193
+ </div>
194
+ </CaseLayout>
195
+ </Suspense>);
194
196
  };
195
197
  export default CaseContainer;
@@ -1,4 +1,4 @@
1
- import { useEffect, useState } from 'react';
1
+ import { useEffect, useState, Suspense } from 'react';
2
2
  import CaseLayout from './_layout/CaseLayout';
3
3
  import SubColor1Button from './_button/SubColor1Button';
4
4
  import { useQuery } from 'react-query';
@@ -79,17 +79,18 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
79
79
  // }, []);
80
80
 
81
81
  return (
82
- <CaseLayout
83
- outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] "
84
- innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'}
85
- isMobilePadding={false}
86
- >
87
- <div className={''}>
88
- <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
89
- <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap} />
90
- <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap} />
91
- </div>
92
- {/* <div className={'py-[22px] sm-top:px-[50px] sm-top:py-[16px] lg:my-[20px] lg:px-[60px]'}>
82
+ <Suspense>
83
+ <CaseLayout
84
+ outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] "
85
+ innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'}
86
+ isMobilePadding={false}
87
+ >
88
+ <div className={''}>
89
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
90
+ <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap} />
91
+ <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap} />
92
+ </div>
93
+ {/* <div className={'py-[22px] sm-top:px-[50px] sm-top:py-[16px] lg:my-[20px] lg:px-[60px]'}>
93
94
  {tapState === 'ongoing' ? (
94
95
  <>
95
96
  <div className="flex flex-row max-sm-top:hidden sm-top:gap-[12px] md2:gap-[20px] lg:gap-[28px] ">
@@ -215,30 +216,31 @@ const CaseContainer = ({ jwt }: { jwt?: string }) => {
215
216
  </>
216
217
  )}
217
218
  </div> */}
218
- {isLoading ? (
219
- <Loading />
220
- ) : data?.list.length > 0 ? (
221
- <>
222
- {/* <CaseTable
219
+ {isLoading ? (
220
+ <Loading />
221
+ ) : data?.list.length > 0 ? (
222
+ <>
223
+ {/* <CaseTable
223
224
  list={data?.list}
224
225
  totalLength={data?.totalLength}
225
226
  pageSize={pageSize}
226
227
  pageNumber={pageNumber}
227
228
  onChange={handleOnChange}
228
229
  /> */}
229
- <CaseTableMo
230
- list={data?.list}
231
- totalLength={data?.totalLength}
232
- pageSize={pageSize}
233
- pageNumber={pageNumber}
234
- onChange={handleOnChange}
235
- />
236
- </>
237
- ) : (
238
- <EmptyTable tap={tapState} subTap={0} />
239
- )}
240
- </div>
241
- </CaseLayout>
230
+ <CaseTableMo
231
+ list={data?.list}
232
+ totalLength={data?.totalLength}
233
+ pageSize={pageSize}
234
+ pageNumber={pageNumber}
235
+ onChange={handleOnChange}
236
+ />
237
+ </>
238
+ ) : (
239
+ <EmptyTable tap={tapState} subTap={0} />
240
+ )}
241
+ </div>
242
+ </CaseLayout>
243
+ </Suspense>
242
244
  );
243
245
  };
244
246