@daeryun/dr_components 1.0.77 → 1.0.78

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.
@@ -3,6 +3,7 @@ import Link from 'next/link';
3
3
  import CaseLayout from '../../_component/_layout/CaseLayout';
4
4
  import Loading from '../../_component/_loading/Loading';
5
5
  import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
6
+ import { dateFomat } from '../../../../../lib';
6
7
  const Line = ({ title, content, isFirst = false }) => {
7
8
  return (<div className={`lg;py-[28px] flex flex-row border-solid border-grayScale5 py-[20px] sm-top:py-[20px] ${isFirst ? 'border-y-[1px]' : 'border-b-[1px]'}`}>
8
9
  <div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 w-[30%]">{title}</div>
@@ -23,8 +24,8 @@ const DetailInfo = ({ detailList, isLoading }) => {
23
24
  <Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
24
25
  <Line title="사건명" content={detailList === null || detailList === void 0 ? void 0 : detailList.title}/>
25
26
  <Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
26
- <Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.accept_date}/>
27
- <Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
27
+ <Line title="사건 시작일" content={dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.accept_date, 'YYYY-MM-DD')}/>
28
+ <Line title="사건 종료일" content={dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.end_date, 'YYYY-MM-DD')}/>
28
29
  {/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
29
30
  {/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
30
31
  {/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
@@ -4,6 +4,7 @@ import Link from 'next/link';
4
4
  import CaseLayout from '../../_component/_layout/CaseLayout';
5
5
  import Loading from '../../_component/_loading/Loading';
6
6
  import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
7
+ import { dateFomat } from '../../../../../lib';
7
8
 
8
9
  const Line = ({
9
10
  title,
@@ -48,8 +49,8 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
48
49
  <Line title="법원명" content={detailList?.agency_name} />
49
50
  <Line title="사건명" content={detailList?.title} />
50
51
  <Line title="진행단계" content={detailList?.state} />
51
- <Line title="사건 시작일" content={detailList?.accept_date} />
52
- <Line title="사건 종료일" content={detailList?.end_date} />
52
+ <Line title="사건 시작일" content={dateFomat(detailList?.accept_date, 'YYYY-MM-DD')} />
53
+ <Line title="사건 종료일" content={dateFomat(detailList?.end_date, 'YYYY-MM-DD')} />
53
54
  {/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
54
55
  {/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
55
56
  {/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}