@daeryun/dr_components 0.2.63 → 0.2.65

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 (27) hide show
  1. package/custom.d.ts +8 -8
  2. package/dist/components/Footer/index.jsx +5 -5
  3. package/dist/components/Footer/index.tsx +9 -5
  4. package/dist/components/page/myCaseManage/[id]/_component/DetailInfo.jsx +1 -1
  5. package/dist/components/page/myCaseManage/[id]/_component/DetailInfo.tsx +1 -1
  6. package/dist/components/page/myCaseManage/[id]/_component/TimeLine.jsx +2 -2
  7. package/dist/components/page/myCaseManage/[id]/_component/TimeLine.tsx +2 -2
  8. package/dist/components/page/myCaseManage/[id]/_component/_document/DocumentLine.jsx +6 -6
  9. package/dist/components/page/myCaseManage/[id]/_component/_document/DocumentLine.tsx +6 -6
  10. package/dist/components/page/myCaseManage/_component/CaseContainer.d.ts +3 -1
  11. package/dist/components/page/myCaseManage/_component/CaseContainer.jsx +2 -2
  12. package/dist/components/page/myCaseManage/_component/CaseContainer.tsx +5 -3
  13. package/dist/components/page/myCaseManage/_component/_breadCrumble/CategoryMenu.jsx +4 -4
  14. package/dist/components/page/myCaseManage/_component/_breadCrumble/CategoryMenu.tsx +4 -4
  15. package/dist/components/page/myCaseManage/_component/_empty/EmptyTable.jsx +3 -3
  16. package/dist/components/page/myCaseManage/_component/_empty/EmptyTable.tsx +3 -3
  17. package/dist/components/page/myCaseManage/_component/_layout/IntroWrapper.d.ts +1 -1
  18. package/dist/components/page/myCaseManage/_component/_layout/IntroWrapper.jsx +1 -1
  19. package/dist/components/page/myCaseManage/_component/_layout/IntroWrapper.tsx +2 -2
  20. package/dist/components/page/myCaseManage/index.d.ts +3 -1
  21. package/dist/components/page/myCaseManage/index.jsx +4 -4
  22. package/dist/components/page/myCaseManage/index.stories.d.ts +6 -0
  23. package/dist/components/page/myCaseManage/index.stories.jsx +17 -0
  24. package/dist/components/page/myCaseManage/index.stories.tsx +28 -0
  25. package/dist/components/page/myCaseManage/index.tsx +4 -4
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +1 -1
package/custom.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- declare module '*.jpg'
2
- declare module '*.png'
3
- declare module '*.jpeg'
4
- declare module '*.gif'
5
- declare module '*.webp'
6
- declare module '*.avif'
7
- declare module '*.css'
8
- declare module '*.svg'
1
+ declare module '*.jpg';
2
+ declare module '*.png';
3
+ declare module '*.jpeg';
4
+ declare module '*.gif';
5
+ declare module '*.webp';
6
+ declare module '*.avif';
7
+ declare module '*.css';
8
+ declare module '*.svg';
@@ -322,7 +322,7 @@ const FooterSelectBox = (props) => {
322
322
  {routeLocation
323
323
  ? groupsData === null || groupsData === void 0 ? void 0 : groupsData.map((item, index) => (
324
324
  // 메인페이지로 접근했을 때, 서버사이드에서 가져온 데이터로 색인
325
- <React.Fragment key={index}>
325
+ <React.Fragment key={item.code + item.code_name + item.etc2}>
326
326
  <li key={index} value={item.code_name} className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100">
327
327
  <Link href={getDomainHandler(item.code, item.code_desc)} key={index} target="_blank" title={item.code_name} onClick={() => {
328
328
  setIsOpen(!isOpen);
@@ -335,7 +335,7 @@ const FooterSelectBox = (props) => {
335
335
  </Link>
336
336
  </li>
337
337
  {item.children.length > 0 &&
338
- item.children.map((childGroup) => (<>
338
+ item.children.map((childGroup) => (<React.Fragment key={childGroup.code + childGroup.code_name + childGroup.etc2}>
339
339
  <li key={childGroup.code} value={childGroup.code_name} className="cursor-pointer px-9 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
340
340
  <Link href={childGroup.etc2} key={index} target="_blank" title={childGroup.codename} onClick={() => {
341
341
  setIsOpen(!isOpen);
@@ -350,7 +350,7 @@ const FooterSelectBox = (props) => {
350
350
  기업인수·합병(M&A) 센터
351
351
  </Link>
352
352
  </li>) : (<></>)}
353
- </>))}
353
+ </React.Fragment>))}
354
354
  </React.Fragment>))
355
355
  : (_a = isGroups.list) === null || _a === void 0 ? void 0 : _a.filter(i => i.code !== 'CT0022').map((item, index) => (
356
356
  // 메인페이지가 아닌 경로로 유입되었을 때, api 호출하여 받은 데이터. 색인 x
@@ -367,7 +367,7 @@ const FooterSelectBox = (props) => {
367
367
  </Link>
368
368
  </li>
369
369
  {item.children.length > 0 &&
370
- item.children.map((childGroup) => (<>
370
+ item.children.map((childGroup) => (<React.Fragment key={childGroup.code + childGroup.code_name + childGroup.etc2}>
371
371
  <li key={childGroup.code} value={childGroup.code_name} className="cursor-pointer px-9 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100">
372
372
  <Link href={childGroup.etc2} key={index} target="_blank" title={childGroup.codename} onClick={() => {
373
373
  setIsOpen(!isOpen);
@@ -382,7 +382,7 @@ const FooterSelectBox = (props) => {
382
382
  기업인수·합병(M&A) 센터
383
383
  </Link>
384
384
  </li>) : (<></>)}
385
- </>))}
385
+ </React.Fragment>))}
386
386
  </React.Fragment>))}
387
387
  </ul>
388
388
 
@@ -549,7 +549,7 @@ const FooterSelectBox = (props: {
549
549
  {routeLocation
550
550
  ? groupsData?.map((item: any, index: number) => (
551
551
  // 메인페이지로 접근했을 때, 서버사이드에서 가져온 데이터로 색인
552
- <React.Fragment key={index}>
552
+ <React.Fragment key={item.code + item.code_name + item.etc2}>
553
553
  <li
554
554
  key={index}
555
555
  value={item.code_name}
@@ -573,7 +573,9 @@ const FooterSelectBox = (props: {
573
573
  </li>
574
574
  {item.children.length > 0 &&
575
575
  item.children.map((childGroup: any) => (
576
- <>
576
+ <React.Fragment
577
+ key={childGroup.code + childGroup.code_name + childGroup.etc2}
578
+ >
577
579
  <li
578
580
  key={childGroup.code}
579
581
  value={childGroup.code_name}
@@ -610,7 +612,7 @@ const FooterSelectBox = (props: {
610
612
  ) : (
611
613
  <></>
612
614
  )}
613
- </>
615
+ </React.Fragment>
614
616
  ))}
615
617
  </React.Fragment>
616
618
  ))
@@ -642,7 +644,9 @@ const FooterSelectBox = (props: {
642
644
  </li>
643
645
  {item.children.length > 0 &&
644
646
  item.children.map((childGroup: any) => (
645
- <>
647
+ <React.Fragment
648
+ key={childGroup.code + childGroup.code_name + childGroup.etc2}
649
+ >
646
650
  <li
647
651
  key={childGroup.code}
648
652
  value={childGroup.code_name}
@@ -679,7 +683,7 @@ const FooterSelectBox = (props: {
679
683
  ) : (
680
684
  <></>
681
685
  )}
682
- </>
686
+ </React.Fragment>
683
687
  ))}
684
688
  </React.Fragment>
685
689
  ))}
@@ -2,7 +2,7 @@ import Image from 'next/image';
2
2
  import Link from 'next/link';
3
3
  import CaseLayout from '../../_component/_layout/CaseLayout';
4
4
  import Loading from '../../_component/_loading/Loading';
5
- import caseLookupLinkout from '../../../../../asset/images/mycaseManage/icon/case_lookup_linkout.svg';
5
+ import caseLookupLinkout from '../../../../../asset/images/myCaseManage/icon/case_lookup_linkout.svg';
6
6
  const Line = ({ title, content, isFirst = false }) => {
7
7
  return (<div className={`border-grayScale5 flex h-[86px] flex-row border-solid py-[28px] ${isFirst ? 'border-y-[1px]' : 'border-b-[1px]'}`}>
8
8
  <div className="lg:body_medium2 w-[30%]">{title}</div>
@@ -6,7 +6,7 @@ import Image from 'next/image';
6
6
  import Link from 'next/link';
7
7
  import CaseLayout from '../../_component/_layout/CaseLayout';
8
8
  import Loading from '../../_component/_loading/Loading';
9
- import caseLookupLinkout from '../../../../../asset/images/mycaseManage/icon/case_lookup_linkout.svg';
9
+ import caseLookupLinkout from '../../../../../asset/images/myCaseManage/icon/case_lookup_linkout.svg';
10
10
  const Line = ({ title, content, isFirst = false }: { title: string; content: string; isFirst?: boolean }) => {
11
11
  return (
12
12
  <div
@@ -1,8 +1,8 @@
1
1
  import dayjs from 'dayjs';
2
2
  import CaseLayout from '../../_component/_layout/CaseLayout';
3
3
  import Image from 'next/image';
4
- import checkCircle from '../../../../../asset/images/mycaseManage/icon/check_circle.svg';
5
- import checkCircle2 from '../../../../../asset/images/mycaseManage/icon/check_circle2.svg';
4
+ import checkCircle from '../../../../../asset/images/myCaseManage/icon/check_circle.svg';
5
+ import checkCircle2 from '../../../../../asset/images/myCaseManage/icon/check_circle2.svg';
6
6
  const TimeBox = ({ item }) => {
7
7
  return (<div className="bg-grayScale7 rounded-[12px] px-[28px] py-[20px]">
8
8
  <div className="text-grayScale2 body_small2">{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}</div>
@@ -2,8 +2,8 @@ import dayjs from 'dayjs';
2
2
  import CaseLayout from '../../_component/_layout/CaseLayout';
3
3
  import Image from 'next/image';
4
4
  import { TimeLineType } from '../../_type/type';
5
- import checkCircle from '../../../../../asset/images/mycaseManage/icon/check_circle.svg';
6
- import checkCircle2 from '../../../../../asset/images/mycaseManage/icon/check_circle2.svg';
5
+ import checkCircle from '../../../../../asset/images/myCaseManage/icon/check_circle.svg';
6
+ import checkCircle2 from '../../../../../asset/images/myCaseManage/icon/check_circle2.svg';
7
7
 
8
8
  const TimeBox = ({ item }: { item: any }) => {
9
9
  return (
@@ -10,12 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import Image from 'next/image';
11
11
  import dayjs from 'dayjs';
12
12
  import { useEffect, useState } from 'react';
13
- import download from '../../../../../../asset/images/mycaseManage/icon/download.svg';
14
- import pdf from '../../../../../../asset/images/mycaseManage/icon/pdf.svg';
15
- import word from '../../../../../../asset/images/mycaseManage/icon/word.svg';
16
- import xls from '../../../../../../asset/images/mycaseManage/icon/xls.svg';
17
- import jpg from '../../../../../../asset/images/mycaseManage/icon/jpg.svg';
18
- import png from '../../../../../../asset/images/mycaseManage/icon/png.svg';
13
+ import download from '../../../../../../asset/images/myCaseManage/icon/download.svg';
14
+ import pdf from '../../../../../../asset/images/myCaseManage/icon/pdf.svg';
15
+ import word from '../../../../../../asset/images/myCaseManage/icon/word.svg';
16
+ import xls from '../../../../../../asset/images/myCaseManage/icon/xls.svg';
17
+ import jpg from '../../../../../../asset/images/myCaseManage/icon/jpg.svg';
18
+ import png from '../../../../../../asset/images/myCaseManage/icon/png.svg';
19
19
  const DocumentLine = ({ item, index }) => {
20
20
  const [downloadUrl, setDownloadUrl] = useState(null);
21
21
  useEffect(() => {
@@ -2,13 +2,13 @@ import Image from 'next/image';
2
2
  import dayjs from 'dayjs';
3
3
  import { FileList } from '../../../_type/type';
4
4
  import { useEffect, useState } from 'react';
5
- import download from '../../../../../../asset/images/mycaseManage/icon/download.svg';
6
- import pdf from '../../../../../../asset/images/mycaseManage/icon/pdf.svg';
7
- import word from '../../../../../../asset/images/mycaseManage/icon/word.svg';
8
- import xls from '../../../../../../asset/images/mycaseManage/icon/xls.svg';
5
+ import download from '../../../../../../asset/images/myCaseManage/icon/download.svg';
6
+ import pdf from '../../../../../../asset/images/myCaseManage/icon/pdf.svg';
7
+ import word from '../../../../../../asset/images/myCaseManage/icon/word.svg';
8
+ import xls from '../../../../../../asset/images/myCaseManage/icon/xls.svg';
9
9
 
10
- import jpg from '../../../../../../asset/images/mycaseManage/icon/jpg.svg';
11
- import png from '../../../../../../asset/images/mycaseManage/icon/png.svg';
10
+ import jpg from '../../../../../../asset/images/myCaseManage/icon/jpg.svg';
11
+ import png from '../../../../../../asset/images/myCaseManage/icon/png.svg';
12
12
 
13
13
  const DocumentLine = ({ item, index }: { item: FileList; index: number }) => {
14
14
  const [downloadUrl, setDownloadUrl] = useState<string | null>(null);
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const CaseContainer: () => import("react").JSX.Element;
2
+ declare const CaseContainer: ({ jwt }: {
3
+ jwt: string;
4
+ }) => import("react").JSX.Element;
3
5
  export default CaseContainer;
@@ -16,7 +16,7 @@ const CaseTap = ({ title, type, tap, setTap }) => {
16
16
  <p className={'lg:body_large1'}>{title}</p>
17
17
  </button>);
18
18
  };
19
- const CaseContainer = () => {
19
+ const CaseContainer = ({ jwt }) => {
20
20
  const router = useRouter();
21
21
  const { page, tap, subTap } = router.query;
22
22
  const tapState = tap ? tap : 'ongoing';
@@ -47,7 +47,7 @@ const CaseContainer = () => {
47
47
  useQuery({
48
48
  queryKey: ['case', tapState, subTapState, pageNumber],
49
49
  queryFn: () => getCaseList({
50
- jwt: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTczOTkyNzA5OSwiZXhwIjoxNzM5OTYzMDk5fQ.dFs1DbeGJd3E-FiBKguapDUqTzqT5m1mzparF3SeKB8',
50
+ jwt: jwt,
51
51
  size: pageSize,
52
52
  state: subTapState,
53
53
  page: pageNumber
@@ -27,14 +27,16 @@ const CaseTap = ({
27
27
  setTap(type);
28
28
  }
29
29
  }}
30
- className={`items-top flex h-[45px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 ${tap === type ? 'border-black text-black' : 'text-grayScale4 border-grayScale4'}`}
30
+ className={`items-top flex h-[45px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 ${
31
+ tap === type ? 'border-black text-black' : 'text-grayScale4 border-grayScale4'
32
+ }`}
31
33
  >
32
34
  <p className={'lg:body_large1'}>{title}</p>
33
35
  </button>
34
36
  );
35
37
  };
36
38
 
37
- const CaseContainer = () => {
39
+ const CaseContainer = ({ jwt }: { jwt: string }) => {
38
40
  const router = useRouter();
39
41
  const { page, tap, subTap } = router.query;
40
42
  const tapState = tap ? (tap as string) : 'ongoing';
@@ -69,7 +71,7 @@ const CaseContainer = () => {
69
71
  queryKey: ['case', tapState, subTapState, pageNumber],
70
72
  queryFn: () =>
71
73
  getCaseList({
72
- jwt: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTczOTkyNzA5OSwiZXhwIjoxNzM5OTYzMDk5fQ.dFs1DbeGJd3E-FiBKguapDUqTzqT5m1mzparF3SeKB8',
74
+ jwt: jwt,
73
75
  size: pageSize,
74
76
  state: subTapState as string,
75
77
  page: pageNumber
@@ -3,10 +3,10 @@ import { catagoryMenuName } from '../../_lib/catagoryMenuName';
3
3
  import { useRouter } from 'next/router';
4
4
  import Image from 'next/image';
5
5
  import Link from 'next/link';
6
- import arrow2 from '../../../../../asset/images/mycaseManage/arrow_2.webp';
7
- import nav_arr from '../../../../../asset/images/mycaseManage/nav_arr.webp';
8
- import home from '../../../../../asset/images/mycaseManage/home.webp';
9
- import whiteHome from '../../../../../asset/images/mycaseManage/home.svg';
6
+ import arrow2 from '../../../../../asset/images/myCaseManage/arrow_2.webp';
7
+ import nav_arr from '../../../../../asset/images/myCaseManage/nav_arr.webp';
8
+ import home from '../../../../../asset/images/myCaseManage/home.webp';
9
+ import whiteHome from '../../../../../asset/images/myCaseManage/home.svg';
10
10
  const CategoryMenu = (props) => {
11
11
  const { t, isMargin = true, isWhite = false } = props;
12
12
  const router = useRouter();
@@ -3,10 +3,10 @@ import { catagoryMenuName } from '../../_lib/catagoryMenuName';
3
3
  import { useRouter } from 'next/router';
4
4
  import Image from 'next/image';
5
5
  import Link from 'next/link';
6
- import arrow2 from '../../../../../asset/images/mycaseManage/arrow_2.webp';
7
- import nav_arr from '../../../../../asset/images/mycaseManage/nav_arr.webp';
8
- import home from '../../../../../asset/images/mycaseManage/home.webp';
9
- import whiteHome from '../../../../../asset/images/mycaseManage/home.svg';
6
+ import arrow2 from '../../../../../asset/images/myCaseManage/arrow_2.webp';
7
+ import nav_arr from '../../../../../asset/images/myCaseManage/nav_arr.webp';
8
+ import home from '../../../../../asset/images/myCaseManage/home.webp';
9
+ import whiteHome from '../../../../../asset/images/myCaseManage/home.svg';
10
10
 
11
11
  type CategoryMenuType = {
12
12
  t: (key: string) => string;
@@ -1,7 +1,7 @@
1
1
  import Image from 'next/image';
2
- import caseIcon1 from '../../../../../asset/images/mycaseManage/icon/case_icon1.svg';
3
- import caseIcon2 from '../../../../../asset/images/mycaseManage/icon/case_icon2.svg';
4
- import caseIcon3 from '../../../../../asset/images/mycaseManage/icon/case_icon3.svg';
2
+ import caseIcon1 from '../../../../../asset/images/myCaseManage/icon/case_icon1.svg';
3
+ import caseIcon2 from '../../../../../asset/images/myCaseManage/icon/case_icon2.svg';
4
+ import caseIcon3 from '../../../../../asset/images/myCaseManage/icon/case_icon3.svg';
5
5
  const titleList = {
6
6
  ongoing: {
7
7
  0: {
@@ -1,7 +1,7 @@
1
1
  import Image from 'next/image';
2
- import caseIcon1 from '../../../../../asset/images/mycaseManage/icon/case_icon1.svg';
3
- import caseIcon2 from '../../../../../asset/images/mycaseManage/icon/case_icon2.svg';
4
- import caseIcon3 from '../../../../../asset/images/mycaseManage/icon/case_icon3.svg';
2
+ import caseIcon1 from '../../../../../asset/images/myCaseManage/icon/case_icon1.svg';
3
+ import caseIcon2 from '../../../../../asset/images/myCaseManage/icon/case_icon2.svg';
4
+ import caseIcon3 from '../../../../../asset/images/myCaseManage/icon/case_icon3.svg';
5
5
 
6
6
  const titleList = {
7
7
  ongoing: {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const IntroWrapper: ({ backgroundImage, outerClassName, title, subTitle }: {
3
- backgroundImage?: string | undefined;
3
+ backgroundImage?: any;
4
4
  outerClassName?: string | undefined;
5
5
  title?: string | undefined;
6
6
  subTitle?: string | undefined;
@@ -6,7 +6,7 @@ import Wrapper from '../../../../Layout/Wrapper';
6
6
  const IntroWrapper = ({ backgroundImage, outerClassName, title, subTitle }) => {
7
7
  const { t } = useTranslation('common');
8
8
  return (<div className={'absolute top-[70px] w-full md:top-[78px] md2:top-[88px] ' + outerClassName}>
9
- {backgroundImage ? (<Image unoptimized src={backgroundImage} alt="background" fill className="object-cover"/>) : (<></>)}
9
+ {backgroundImage ? (<Image unoptimized src={backgroundImage} alt="background232" fill className="object-cover"/>) : (<></>)}
10
10
 
11
11
  <Wrapper>
12
12
  <div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
@@ -11,7 +11,7 @@ const IntroWrapper = ({
11
11
  title,
12
12
  subTitle
13
13
  }: {
14
- backgroundImage?: string;
14
+ backgroundImage?: any;
15
15
  outerClassName?: string;
16
16
  title?: string;
17
17
  subTitle?: string;
@@ -20,7 +20,7 @@ const IntroWrapper = ({
20
20
  return (
21
21
  <div className={'absolute top-[70px] w-full md:top-[78px] md2:top-[88px] ' + outerClassName}>
22
22
  {backgroundImage ? (
23
- <Image unoptimized src={backgroundImage} alt="background" fill className="object-cover" />
23
+ <Image unoptimized src={backgroundImage} alt="background232" fill className="object-cover" />
24
24
  ) : (
25
25
  <></>
26
26
  )}
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- declare const Intro: () => React.JSX.Element;
2
+ declare const Intro: ({ jwt }: {
3
+ jwt: string;
4
+ }) => React.JSX.Element;
3
5
  export default Intro;
@@ -3,16 +3,16 @@ import { useTranslation } from 'next-i18next';
3
3
  import IntroWrapper from './_component/_layout/IntroWrapper';
4
4
  import CaseContainer from './_component/CaseContainer';
5
5
  import HeaderLayout from './_component/_layout/HeaderLayout';
6
- import background from '../../../asset/images/myCaseManage/background.svg';
7
- const Intro = () => {
6
+ import Background from '../../../asset/images/myCaseManage/background.svg';
7
+ const Intro = ({ jwt }) => {
8
8
  const { t } = useTranslation('common');
9
9
  return (<div className=" mt-[70px] min-h-[800px] md:mt-[78px] md2:mt-[88px]">
10
- <IntroWrapper title={'나의 사건 현황'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={background} outerClassName="h-[513px]"/>
10
+ <IntroWrapper title={'나의 사건 현황'} subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'} backgroundImage={Background} outerClassName="h-[513px]"/>
11
11
 
12
12
  <div className={'relative z-[1]'}>
13
13
  {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
14
14
  <HeaderLayout>
15
- <CaseContainer />
15
+ <CaseContainer jwt={jwt}/>
16
16
  </HeaderLayout>
17
17
  </div>
18
18
  </div>);
@@ -0,0 +1,6 @@
1
+ import MyCaseManage from './index';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof MyCaseManage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,17 @@
1
+ import MyCaseManage from './index';
2
+ import { QueryClient, QueryClientProvider } from 'react-query';
3
+ const meta = {
4
+ component: MyCaseManage,
5
+ title: 'myCaseManage'
6
+ };
7
+ export default meta;
8
+ const queryClient = new QueryClient();
9
+ export const Default = {
10
+ render: () => {
11
+ return (<QueryClientProvider client={queryClient}>
12
+ <div className={'font-[SUIT]'}>
13
+ <MyCaseManage jwt={'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY'}/>
14
+ </div>
15
+ </QueryClientProvider>);
16
+ }
17
+ };
@@ -0,0 +1,28 @@
1
+ import MyCaseManage from './index';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import { QueryClient, QueryClientProvider } from 'react-query';
4
+
5
+ const meta: Meta<typeof MyCaseManage> = {
6
+ component: MyCaseManage,
7
+ title: 'myCaseManage'
8
+ };
9
+
10
+ export default meta;
11
+ const queryClient = new QueryClient();
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {
15
+ render: () => {
16
+ return (
17
+ <QueryClientProvider client={queryClient}>
18
+ <div className={'font-[SUIT]'}>
19
+ <MyCaseManage
20
+ jwt={
21
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjIsImlhdCI6MTc0MDAxNDYzOCwiZXhwIjoxNzcxNTcyMjM4fQ.11ra7DkzlOVmBqDjo8SJTQnZDZdRHXjjU3ujK8G3OOY'
22
+ }
23
+ />
24
+ </div>
25
+ </QueryClientProvider>
26
+ );
27
+ }
28
+ };
@@ -3,9 +3,9 @@ import { useTranslation } from 'next-i18next';
3
3
  import IntroWrapper from './_component/_layout/IntroWrapper';
4
4
  import CaseContainer from './_component/CaseContainer';
5
5
  import HeaderLayout from './_component/_layout/HeaderLayout';
6
- import background from '../../../asset/images/myCaseManage/background.svg';
6
+ import Background from '../../../asset/images/myCaseManage/background.svg';
7
7
 
8
- const Intro = () => {
8
+ const Intro = ({ jwt }: { jwt: string }) => {
9
9
  const { t } = useTranslation('common');
10
10
 
11
11
  return (
@@ -13,14 +13,14 @@ const Intro = () => {
13
13
  <IntroWrapper
14
14
  title={'나의 사건 현황'}
15
15
  subTitle={'대륜과 진행하고 있는 나의 사건 현황을 한눈에 확인할 수 있습니다.'}
16
- backgroundImage={background}
16
+ backgroundImage={Background}
17
17
  outerClassName="h-[513px]"
18
18
  />
19
19
 
20
20
  <div className={'relative z-[1]'}>
21
21
  {/*header 크기 -> 115px max-lg2:90px max-xs:83px*/}
22
22
  <HeaderLayout>
23
- <CaseContainer />
23
+ <CaseContainer jwt={jwt} />
24
24
  </HeaderLayout>
25
25
  </div>
26
26
  </div>