@daeryun/dr_components 0.3.3 → 0.3.4

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,3 +1,5 @@
1
1
  import React from 'react';
2
- declare const Intro: () => React.JSX.Element;
3
- export default Intro;
2
+ declare const MyCasePage: ({ jwt }: {
3
+ jwt?: string;
4
+ }) => React.JSX.Element;
5
+ export default MyCasePage;
@@ -5,7 +5,7 @@ import HeaderLayout from './_component/_layout/HeaderLayout';
5
5
  import background from '../../../../asset/images/myCase/background.webp';
6
6
  import backgroundTb from '../../../../asset/images/myCase/background_tb.webp';
7
7
  import backgroundMo from '../../../../asset/images/myCase/background_mo.webp';
8
- const Intro = () => {
8
+ const MyCasePage = ({ jwt }) => {
9
9
  return (
10
10
  // <MyCaseManage jwt='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY' />
11
11
  <div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
@@ -13,9 +13,9 @@ const Intro = () => {
13
13
  <div className={'relative z-[1]'}>
14
14
  {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
15
15
  <HeaderLayout>
16
- <CaseContainer />
16
+ <CaseContainer jwt={jwt}/>
17
17
  </HeaderLayout>
18
18
  </div>
19
19
  </div>);
20
20
  };
21
- export default Intro;
21
+ export default MyCasePage;
@@ -7,7 +7,7 @@ import background from '../../../../asset/images/myCase/background.webp';
7
7
  import backgroundTb from '../../../../asset/images/myCase/background_tb.webp';
8
8
  import backgroundMo from '../../../../asset/images/myCase/background_mo.webp';
9
9
 
10
- const Intro = () => {
10
+ const MyCasePage = ({ jwt }: { jwt?: string }) => {
11
11
  return (
12
12
  // <MyCaseManage jwt='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY' />
13
13
 
@@ -23,11 +23,11 @@ const Intro = () => {
23
23
  <div className={'relative z-[1]'}>
24
24
  {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
25
25
  <HeaderLayout>
26
- <CaseContainer />
26
+ <CaseContainer jwt={jwt} />
27
27
  </HeaderLayout>
28
28
  </div>
29
29
  </div>
30
30
  );
31
31
  };
32
32
 
33
- export default Intro;
33
+ export default MyCasePage;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- declare const Intro: () => React.JSX.Element;
3
- export default Intro;
2
+ declare const MyCaseDetailPage: ({ jwt }: {
3
+ jwt?: string;
4
+ }) => React.JSX.Element;
5
+ export default MyCaseDetailPage;
@@ -5,7 +5,7 @@ import SubMenuButton from '../_component/_button/SubMenuButton';
5
5
  import HeaderLayout from '../_component/_layout/HeaderLayout';
6
6
  import DetailInfo from './_component/DetailInfo';
7
7
  import { useParams, useRouter, useSearchParams } from 'next/navigation';
8
- import { actionGetCourtFileList, actionGetDetailList, actionGetMyCaseQuestion, actionGetMyFileList, actionGetTimeLine } from '../_actions/action';
8
+ import { actionGetDetailList, actionGetMyCaseQuestion, actionGetTimeLine } from '../_actions/action';
9
9
  import background from '../../../../../asset/images/myCase/background.webp';
10
10
  import backgroundTb from '../../../../../asset/images/myCase/background_tb.webp';
11
11
  import backgroundMo from '../../../../../asset/images/myCase/background_mo.webp';
@@ -13,7 +13,7 @@ import TimeLine from './_component/TimeLine';
13
13
  import ContactInfo from './_component/ContactInfo';
14
14
  import CaseInquiry from './_component/_caseInquiry/CaseInquiry';
15
15
  import CaseTabSwiper from '../_component/_table/CaseTabSwiper';
16
- const Intro = () => {
16
+ const MyCaseDetailPage = ({ jwt }) => {
17
17
  var _a;
18
18
  const { t } = useTranslation('common');
19
19
  const [selected, setSelected] = useState('사건 정보');
@@ -24,11 +24,11 @@ const Intro = () => {
24
24
  const { page, tap, subTap } = Object.fromEntries(searchParams.entries());
25
25
  const pageNumber = page ? Number(page) : 1;
26
26
  const [pageSize, setPageSize] = useState(3);
27
- const { data: detailList, isLoading: detailListLoading } = actionGetDetailList(id);
28
- const { data: timeLine, isLoading: timeLineLoading } = actionGetTimeLine(id);
29
- const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id);
30
- const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id);
31
- const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = actionGetMyCaseQuestion(id, pageNumber, pageSize);
27
+ const { data: detailList, isLoading: detailListLoading } = actionGetDetailList(id, jwt);
28
+ const { data: timeLine, isLoading: timeLineLoading } = actionGetTimeLine(id, jwt);
29
+ // const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id as string, jwt);
30
+ // const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id as string, jwt);
31
+ const { data: myCaseQuestion, isLoading: myCaseQuestionLoading, refetch: myCaseQuestionRefetch } = actionGetMyCaseQuestion(id, pageNumber, pageSize, jwt);
32
32
  return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
33
33
  <IntroWrapper title={'상세 사건 정보'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} backgroundTbImage={backgroundTb} backgroundMoImage={backgroundMo} outerClassName="h-[300px] sm-top:h-[448px] lg:h-[513px]"/>
34
34
 
@@ -75,4 +75,4 @@ const Intro = () => {
75
75
  </div>
76
76
  </div>);
77
77
  };
78
- export default Intro;
78
+ export default MyCaseDetailPage;
@@ -9,13 +9,7 @@ import { useParams, usePathname, useRouter, useSearchParams } from 'next/navigat
9
9
  import { useQuery } from 'react-query';
10
10
  import getCase from '../_fetchers/getCase';
11
11
  import { DetailList, FetchType, FileList, Question, TimeLineType } from '../_type/type';
12
- import {
13
- actionGetCourtFileList,
14
- actionGetDetailList,
15
- actionGetMyCaseQuestion,
16
- actionGetMyFileList,
17
- actionGetTimeLine
18
- } from '../_actions/action';
12
+ import { actionGetDetailList, actionGetMyCaseQuestion, actionGetTimeLine } from '../_actions/action';
19
13
  import background from '../../../../../asset/images/myCase/background.webp';
20
14
  import backgroundTb from '../../../../../asset/images/myCase/background_tb.webp';
21
15
  import backgroundMo from '../../../../../asset/images/myCase/background_mo.webp';
@@ -24,7 +18,7 @@ import Document from './_component/_document/Document';
24
18
  import ContactInfo from './_component/ContactInfo';
25
19
  import CaseInquiry from './_component/_caseInquiry/CaseInquiry';
26
20
  import CaseTabSwiper from '../_component/_table/CaseTabSwiper';
27
- const Intro = () => {
21
+ const MyCaseDetailPage = ({ jwt }: { jwt?: string }) => {
28
22
  const { t } = useTranslation('common');
29
23
  const [selected, setSelected] = useState<string>('사건 정보');
30
24
  const router = useRouter();
@@ -36,15 +30,15 @@ const Intro = () => {
36
30
  const pageNumber = page ? Number(page) : 1;
37
31
  const [pageSize, setPageSize] = useState(3);
38
32
 
39
- const { data: detailList, isLoading: detailListLoading } = actionGetDetailList(id as string);
40
- const { data: timeLine, isLoading: timeLineLoading } = actionGetTimeLine(id as string);
41
- const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id as string);
42
- const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id as string);
33
+ const { data: detailList, isLoading: detailListLoading } = actionGetDetailList(id as string, jwt);
34
+ const { data: timeLine, isLoading: timeLineLoading } = actionGetTimeLine(id as string, jwt);
35
+ // const { data: courtFileList, isLoading: courtFileListLoading } = actionGetCourtFileList(id as string, jwt);
36
+ // const { data: myFileList, isLoading: myFileListLoading } = actionGetMyFileList(id as string, jwt);
43
37
  const {
44
38
  data: myCaseQuestion,
45
39
  isLoading: myCaseQuestionLoading,
46
40
  refetch: myCaseQuestionRefetch
47
- } = actionGetMyCaseQuestion(id as string, pageNumber, pageSize);
41
+ } = actionGetMyCaseQuestion(id as string, pageNumber, pageSize, jwt);
48
42
 
49
43
  return (
50
44
  <div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
@@ -153,4 +147,4 @@ const Intro = () => {
153
147
  );
154
148
  };
155
149
 
156
- export default Intro;
150
+ export default MyCaseDetailPage;
@@ -1,34 +1,35 @@
1
1
  import { FetchType, DetailList, TimeLineType, FileList, Question } from '../_type/type';
2
- export declare const actionGetCaseList: ({ tapState, pageNumber, pageSize }: {
2
+ export declare const actionGetCaseList: ({ tapState, pageNumber, pageSize, jwt }: {
3
3
  tapState: string;
4
4
  pageNumber: number;
5
5
  pageSize: number;
6
+ jwt?: string;
6
7
  }) => {
7
8
  data: any;
8
9
  isLoading: boolean;
9
10
  };
10
- export declare const actionGetDetailList: (id: string) => {
11
+ export declare const actionGetDetailList: (id: string, jwt?: string) => {
11
12
  data: FetchType<DetailList> | undefined;
12
13
  isLoading: boolean;
13
14
  };
14
- export declare const actionGetTimeLine: (id: string) => {
15
+ export declare const actionGetTimeLine: (id: string, jwt?: string) => {
15
16
  data: FetchType<TimeLineType> | undefined;
16
17
  isLoading: boolean;
17
18
  };
18
- export declare const actionGetCourtFileList: (id: string) => {
19
+ export declare const actionGetCourtFileList: (id: string, jwt?: string) => {
19
20
  data: FetchType<FileList[]> | undefined;
20
21
  isLoading: boolean;
21
22
  };
22
- export declare const actionGetMyFileList: (id: string) => {
23
+ export declare const actionGetMyFileList: (id: string, jwt?: string) => {
23
24
  data: FetchType<FileList[]> | undefined;
24
25
  isLoading: boolean;
25
26
  };
26
- export declare const actionGetMyCaseQuestion: (id: string, page: number, pageSize: number) => {
27
+ export declare const actionGetMyCaseQuestion: (id: string, page: number, pageSize: number, jwt?: string) => {
27
28
  data: FetchType<Question[]> | undefined;
28
29
  isLoading: boolean;
29
30
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<FetchType<Question[]>, Error>>;
30
31
  };
31
- export declare const actionPostMyCaseQuestion: (id: string, content: string) => {
32
+ export declare const actionPostMyCaseQuestion: (id: string, content: string, jwt?: string) => {
32
33
  mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FetchType<Question[]>, Error, void, unknown>;
33
34
  isLoading: boolean;
34
35
  };
@@ -15,13 +15,13 @@ import getMyFileList from '../_fetchers/getMyFileList';
15
15
  import getMyCaseQuestion from '../_fetchers/getMyCaseQuestion';
16
16
  import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
17
17
  import getCaseList from '../_fetchers/getCaseList';
18
- const jwt = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
18
+ const jwt2 = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
19
19
  // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsImVtYWlsIjoiNjAzMDgwNEBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzQwNDQ2Nzg1LCJleHAiOjE3NDA0ODI3ODV9.v_d7htci4fjLA5MqBXWxUqyNjsAm2GEcdRBO5se-DB8'; //빈거
20
- export const actionGetCaseList = ({ tapState, pageNumber, pageSize }) => {
20
+ export const actionGetCaseList = ({ tapState, pageNumber, pageSize, jwt }) => {
21
21
  const { data, isLoading } = useQuery({
22
22
  queryKey: ['case', tapState, pageNumber, pageSize],
23
23
  queryFn: () => getCaseList({
24
- jwt: jwt,
24
+ jwt: jwt2,
25
25
  size: pageSize,
26
26
  page: pageNumber
27
27
  }),
@@ -34,11 +34,11 @@ export const actionGetCaseList = ({ tapState, pageNumber, pageSize }) => {
34
34
  });
35
35
  return { data, isLoading };
36
36
  };
37
- export const actionGetDetailList = (id) => {
37
+ export const actionGetDetailList = (id, jwt) => {
38
38
  const { data, isLoading } = useQuery({
39
39
  queryKey: ['case', id],
40
40
  queryFn: () => getCase({
41
- jwt: jwt,
41
+ jwt: jwt ? jwt : jwt2,
42
42
  id: id
43
43
  }),
44
44
  //브라우저 화면을 focus할 때 새로 api를 호출할 건지 설정하는 옵션
@@ -54,11 +54,11 @@ export const actionGetDetailList = (id) => {
54
54
  });
55
55
  return { data, isLoading };
56
56
  };
57
- export const actionGetTimeLine = (id) => {
57
+ export const actionGetTimeLine = (id, jwt) => {
58
58
  const { data, isLoading } = useQuery({
59
59
  queryKey: ['case', 'timeline', id],
60
60
  queryFn: () => getTimeLine({
61
- jwt: jwt,
61
+ jwt: jwt ? jwt : jwt2,
62
62
  id: id
63
63
  }),
64
64
  gcTime: 0,
@@ -71,11 +71,11 @@ export const actionGetTimeLine = (id) => {
71
71
  });
72
72
  return { data, isLoading };
73
73
  };
74
- export const actionGetCourtFileList = (id) => {
74
+ export const actionGetCourtFileList = (id, jwt) => {
75
75
  const { data, isLoading } = useQuery({
76
76
  queryKey: ['case', 'courtFileList', id],
77
77
  queryFn: () => getCourtFileList({
78
- jwt: jwt,
78
+ jwt: jwt ? jwt : jwt2,
79
79
  id: id
80
80
  }),
81
81
  gcTime: 0,
@@ -88,11 +88,11 @@ export const actionGetCourtFileList = (id) => {
88
88
  });
89
89
  return { data, isLoading };
90
90
  };
91
- export const actionGetMyFileList = (id) => {
91
+ export const actionGetMyFileList = (id, jwt) => {
92
92
  const { data, isLoading } = useQuery({
93
93
  queryKey: ['case', 'myFileList', id],
94
94
  queryFn: () => getMyFileList({
95
- jwt: jwt,
95
+ jwt: jwt ? jwt : jwt2,
96
96
  id: id
97
97
  }),
98
98
  gcTime: 0,
@@ -105,11 +105,11 @@ export const actionGetMyFileList = (id) => {
105
105
  });
106
106
  return { data, isLoading };
107
107
  };
108
- export const actionGetMyCaseQuestion = (id, page, pageSize) => {
108
+ export const actionGetMyCaseQuestion = (id, page, pageSize, jwt) => {
109
109
  const { data, isLoading, refetch } = useQuery({
110
110
  queryKey: ['case', 'myCaseQuestion', id, page, pageSize],
111
111
  queryFn: () => getMyCaseQuestion({
112
- jwt: jwt,
112
+ jwt: jwt ? jwt : jwt2,
113
113
  id: id,
114
114
  page: page,
115
115
  size: pageSize
@@ -124,11 +124,11 @@ export const actionGetMyCaseQuestion = (id, page, pageSize) => {
124
124
  });
125
125
  return { data, isLoading, refetch };
126
126
  };
127
- export const actionPostMyCaseQuestion = (id, content) => {
127
+ export const actionPostMyCaseQuestion = (id, content, jwt) => {
128
128
  const { mutateAsync, status } = useMutation({
129
129
  mutationFn: () => __awaiter(void 0, void 0, void 0, function* () {
130
130
  return yield addMyCaseQuestion({
131
- jwt: jwt,
131
+ jwt: jwt ? jwt : jwt2,
132
132
  id: id,
133
133
  content: content
134
134
  });
@@ -9,7 +9,7 @@ import getMyCaseQuestion from '../_fetchers/getMyCaseQuestion';
9
9
  import addMyCaseQuestion from '../_fetchers/addMyCaseQuestion';
10
10
  import getCaseList from '../_fetchers/getCaseList';
11
11
 
12
- const jwt =
12
+ const jwt2 =
13
13
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY';
14
14
  // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsImVtYWlsIjoiNjAzMDgwNEBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzQwNDQ2Nzg1LCJleHAiOjE3NDA0ODI3ODV9.v_d7htci4fjLA5MqBXWxUqyNjsAm2GEcdRBO5se-DB8'; //빈거
15
15
 
@@ -17,18 +17,20 @@ export const actionGetCaseList = ({
17
17
  tapState,
18
18
 
19
19
  pageNumber,
20
- pageSize
20
+ pageSize,
21
+ jwt
21
22
  }: {
22
23
  tapState: string;
23
24
 
24
25
  pageNumber: number;
25
26
  pageSize: number;
27
+ jwt?: string;
26
28
  }) => {
27
29
  const { data, isLoading } = useQuery({
28
30
  queryKey: ['case', tapState, pageNumber, pageSize],
29
31
  queryFn: () =>
30
32
  getCaseList({
31
- jwt: jwt,
33
+ jwt: jwt2,
32
34
  size: pageSize,
33
35
  page: pageNumber
34
36
  }),
@@ -43,12 +45,12 @@ export const actionGetCaseList = ({
43
45
  return { data, isLoading };
44
46
  };
45
47
 
46
- export const actionGetDetailList = (id: string) => {
48
+ export const actionGetDetailList = (id: string, jwt?: string) => {
47
49
  const { data, isLoading } = useQuery<FetchType<DetailList>>({
48
50
  queryKey: ['case', id],
49
51
  queryFn: () =>
50
52
  getCase({
51
- jwt: jwt,
53
+ jwt: jwt ? jwt : jwt2,
52
54
  id: id as string
53
55
  }),
54
56
  //브라우저 화면을 focus할 때 새로 api를 호출할 건지 설정하는 옵션
@@ -65,12 +67,12 @@ export const actionGetDetailList = (id: string) => {
65
67
  return { data, isLoading };
66
68
  };
67
69
 
68
- export const actionGetTimeLine = (id: string) => {
70
+ export const actionGetTimeLine = (id: string, jwt?: string) => {
69
71
  const { data, isLoading } = useQuery<FetchType<TimeLineType>>({
70
72
  queryKey: ['case', 'timeline', id],
71
73
  queryFn: () =>
72
74
  getTimeLine({
73
- jwt: jwt,
75
+ jwt: jwt ? jwt : jwt2,
74
76
  id: id as string
75
77
  }),
76
78
  gcTime: 0,
@@ -84,12 +86,12 @@ export const actionGetTimeLine = (id: string) => {
84
86
  return { data, isLoading };
85
87
  };
86
88
 
87
- export const actionGetCourtFileList = (id: string) => {
89
+ export const actionGetCourtFileList = (id: string, jwt?: string) => {
88
90
  const { data, isLoading } = useQuery<FetchType<FileList[]>>({
89
91
  queryKey: ['case', 'courtFileList', id],
90
92
  queryFn: () =>
91
93
  getCourtFileList({
92
- jwt: jwt,
94
+ jwt: jwt ? jwt : jwt2,
93
95
  id: id as string
94
96
  }),
95
97
  gcTime: 0,
@@ -103,12 +105,12 @@ export const actionGetCourtFileList = (id: string) => {
103
105
  return { data, isLoading };
104
106
  };
105
107
 
106
- export const actionGetMyFileList = (id: string) => {
108
+ export const actionGetMyFileList = (id: string, jwt?: string) => {
107
109
  const { data, isLoading } = useQuery<FetchType<FileList[]>>({
108
110
  queryKey: ['case', 'myFileList', id],
109
111
  queryFn: () =>
110
112
  getMyFileList({
111
- jwt: jwt,
113
+ jwt: jwt ? jwt : jwt2,
112
114
  id: id as string
113
115
  }),
114
116
  gcTime: 0,
@@ -122,12 +124,12 @@ export const actionGetMyFileList = (id: string) => {
122
124
  return { data, isLoading };
123
125
  };
124
126
 
125
- export const actionGetMyCaseQuestion = (id: string, page: number, pageSize: number) => {
127
+ export const actionGetMyCaseQuestion = (id: string, page: number, pageSize: number, jwt?: string) => {
126
128
  const { data, isLoading, refetch } = useQuery<FetchType<Question[]>>({
127
129
  queryKey: ['case', 'myCaseQuestion', id, page, pageSize],
128
130
  queryFn: () =>
129
131
  getMyCaseQuestion({
130
- jwt: jwt,
132
+ jwt: jwt ? jwt : jwt2,
131
133
  id: id as string,
132
134
  page: page,
133
135
  size: pageSize
@@ -143,11 +145,11 @@ export const actionGetMyCaseQuestion = (id: string, page: number, pageSize: numb
143
145
  return { data, isLoading, refetch };
144
146
  };
145
147
 
146
- export const actionPostMyCaseQuestion = (id: string, content: string) => {
148
+ export const actionPostMyCaseQuestion = (id: string, content: string, jwt?: string) => {
147
149
  const { mutateAsync, status } = useMutation<FetchType<Question[]>>({
148
150
  mutationFn: async () =>
149
151
  await addMyCaseQuestion({
150
- jwt: jwt,
152
+ jwt: jwt ? jwt : jwt2,
151
153
  id: id as string,
152
154
  content: content as string
153
155
  }),
@@ -1,2 +1,4 @@
1
- declare const CaseContainer: () => import("react").JSX.Element;
1
+ declare const CaseContainer: ({ jwt }: {
2
+ jwt?: string;
3
+ }) => import("react").JSX.Element;
2
4
  export default CaseContainer;
@@ -10,11 +10,11 @@ const CaseTap = ({ title, type, tap, setTap }) => {
10
10
  if (setTap) {
11
11
  setTap(type);
12
12
  }
13
- }} className={`items-top flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 sm-top:h-[40px] lg:h-[45px] ${tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'}`}>
13
+ }} 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'}`}>
14
14
  <p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
15
15
  </button>);
16
16
  };
17
- const CaseContainer = () => {
17
+ const CaseContainer = ({ jwt }) => {
18
18
  const router = useRouter();
19
19
  const searchParams = useSearchParams();
20
20
  const { page, tap, subTap } = Object.fromEntries(searchParams.entries());
@@ -37,7 +37,8 @@ const CaseContainer = () => {
37
37
  const { data, isLoading } = actionGetCaseList({
38
38
  tapState,
39
39
  pageNumber,
40
- pageSize
40
+ pageSize,
41
+ jwt
41
42
  });
42
43
  // useEffect(() => {
43
44
  // const handleResize = () => {
@@ -48,7 +49,7 @@ const CaseContainer = () => {
48
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}>
50
51
  <div className={''}>
51
- <div className="flex flex-row items-center px-[20px] 2sm:px-[40px] sm-top:px-[50px] lg:px-[60px]">
52
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
52
53
  <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap}/>
53
54
  <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap}/>
54
55
  </div>
@@ -30,14 +30,16 @@ const CaseTap = ({
30
30
  setTap(type);
31
31
  }
32
32
  }}
33
- className={`items-top flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 sm-top:h-[40px] lg:h-[45px] ${tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'}`}
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
+ }`}
34
36
  >
35
37
  <p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
36
38
  </button>
37
39
  );
38
40
  };
39
41
 
40
- const CaseContainer = () => {
42
+ const CaseContainer = ({ jwt }: { jwt?: string }) => {
41
43
  const router = useRouter();
42
44
  const searchParams = useSearchParams();
43
45
  const { page, tap, subTap } = Object.fromEntries(searchParams.entries());
@@ -64,7 +66,8 @@ const CaseContainer = () => {
64
66
  tapState,
65
67
 
66
68
  pageNumber,
67
- pageSize
69
+ pageSize,
70
+ jwt
68
71
  });
69
72
  // useEffect(() => {
70
73
  // const handleResize = () => {
@@ -82,7 +85,7 @@ const CaseContainer = () => {
82
85
  isMobilePadding={false}
83
86
  >
84
87
  <div className={''}>
85
- <div className="flex flex-row items-center px-[20px] 2sm:px-[40px] sm-top:px-[50px] lg:px-[60px]">
88
+ <div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
86
89
  <CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap} />
87
90
  <CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap} />
88
91
  </div>