@daeryun/dr_components 1.0.21 → 1.0.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.
- package/dist/components/Daeryuntalk/ChatConversation.jsx +1 -1
- package/dist/components/Daeryuntalk/ChatConversation.tsx +1 -1
- package/dist/components/Daeryuntalk/HomeView.jsx +1 -1
- package/dist/components/Daeryuntalk/HomeView.tsx +1 -1
- package/dist/components/Daeryuntalk/_hooks/useHoverScrollbar.d.ts +1 -1
- package/dist/components/Daeryuntalk/_hooks/useHoverScrollbar.js +2 -2
- package/dist/components/Daeryuntalk/_hooks/useHoverScrollbar.ts +5 -2
- package/dist/components/Seo/SeoConsulting.jsx +3 -2
- package/dist/components/Seo/SeoConsulting.tsx +3 -2
- package/dist/components/common/strength/index.js +1 -1
- package/dist/components/common/strength/index.ts +1 -1
- package/dist/components/page/Login/Login.tsx +2 -5
- package/dist/components/page/Login/LoginComp/LoginContainer.jsx +1 -1
- package/dist/components/page/Login/LoginComp/LoginContainer.tsx +2 -1
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +0 -2
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.tsx +1 -0
- package/dist/components/page/Login/LoginShareCheckContainer.jsx +1 -1
- package/dist/components/page/Login/LoginShareCheckContainer.tsx +1 -1
- package/dist/components/page/Login/Sign.tsx +1 -1
- package/dist/components/page/Login/_api/logout.ts +0 -2
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +6 -6
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +6 -7
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +4 -6
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +2 -1
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_document/FileUpload.js +1 -1
- package/dist/components/page/MyCase/[id]/_component/_document/FileUpload.ts +1 -1
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +2 -1
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +2 -1
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +1 -1
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +1 -1
- package/dist/components/page/MyCase/_actions/action.d.ts +1 -1
- package/dist/components/page/MyCase/_actions/action.ts +1 -1
- package/dist/components/page/MyCase/_component/CaseContainer.jsx +1 -1
- package/dist/components/page/MyCase/_component/CaseContainer.tsx +1 -2
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenu.tsx +1 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +2 -2
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +2 -2
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +1 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +1 -1
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +2 -2
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +1 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +1 -1
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +1 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +0 -2
- package/dist/components/page/Strength/StrengthIntro.jsx +1 -1
- package/dist/components/page/Strength/StrengthIntro.tsx +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ const ChatConversation = ({ onBackClick, onChatNew, isActive, isMobile, onClose,
|
|
|
38
38
|
// 이후
|
|
39
39
|
const messagesContainerRef = useRef(null);
|
|
40
40
|
const messagesEndRef = useRef(null);
|
|
41
|
-
const { style: hoverStyle } = useHoverScrollbar(messagesContainerRef);
|
|
41
|
+
const { style: hoverStyle } = useHoverScrollbar(messagesContainerRef, [messages.length]);
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
var _a;
|
|
44
44
|
if (!mobileBottomRef.current || !pcBottomRef.current)
|
|
@@ -64,7 +64,7 @@ const ChatConversation: React.FC<ChatConversationProps> = ({
|
|
|
64
64
|
const messagesContainerRef = useRef<HTMLDivElement>(null);
|
|
65
65
|
const messagesEndRef = useRef<HTMLDivElement>(null);
|
|
66
66
|
|
|
67
|
-
const { style: hoverStyle } = useHoverScrollbar(messagesContainerRef);
|
|
67
|
+
const { style: hoverStyle } = useHoverScrollbar(messagesContainerRef, [messages.length]);
|
|
68
68
|
|
|
69
69
|
useEffect(() => {
|
|
70
70
|
if (!mobileBottomRef.current || !pcBottomRef.current) return;
|
|
@@ -33,7 +33,7 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
35
|
if (browserSize.width < 480) {
|
|
36
|
-
// 브라우저 세로 - 헤더 - 고정 200px - 푸터 - 문의 버튼 크기
|
|
36
|
+
// 브라우저 세로 - 헤더 - 고정 200px - 푸터 - 문의 버튼 크기1
|
|
37
37
|
const nextHeight = browserSize.height - 56 - 200 - 64 - 88 - 48;
|
|
38
38
|
currentHeightRef.current = nextHeight;
|
|
39
39
|
setContentHeight(nextHeight);
|
|
@@ -45,7 +45,7 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
|
|
|
45
45
|
return;
|
|
46
46
|
} else {
|
|
47
47
|
if (browserSize.width < 480) {
|
|
48
|
-
// 브라우저 세로 - 헤더 - 고정 200px - 푸터 - 문의 버튼 크기
|
|
48
|
+
// 브라우저 세로 - 헤더 - 고정 200px - 푸터 - 문의 버튼 크기1
|
|
49
49
|
const nextHeight = browserSize.height - 56 - 200 - 64 - 88 - 48;
|
|
50
50
|
currentHeightRef.current = nextHeight;
|
|
51
51
|
setContentHeight(nextHeight);
|
|
@@ -5,7 +5,7 @@ import { CSSProperties, RefObject } from 'react';
|
|
|
5
5
|
* - 가로 밀림 현상 완전 방지
|
|
6
6
|
*/
|
|
7
7
|
type MaybeDivRef = RefObject<HTMLDivElement | null> | undefined;
|
|
8
|
-
export declare function useHoverScrollbar(refParam?: MaybeDivRef): {
|
|
8
|
+
export declare function useHoverScrollbar(refParam?: MaybeDivRef, watchDeps?: any[]): {
|
|
9
9
|
ref: RefObject<HTMLDivElement | null>;
|
|
10
10
|
style: CSSProperties;
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
export function useHoverScrollbar(refParam) {
|
|
2
|
+
export function useHoverScrollbar(refParam, watchDeps = []) {
|
|
3
3
|
const localRef = useRef(null);
|
|
4
4
|
const ref = refParam || localRef;
|
|
5
5
|
const [hovered, setHovered] = useState(false);
|
|
@@ -21,7 +21,7 @@ export function useHoverScrollbar(refParam) {
|
|
|
21
21
|
resizeObserver.disconnect();
|
|
22
22
|
window.removeEventListener('resize', checkScroll);
|
|
23
23
|
};
|
|
24
|
-
}, [ref]);
|
|
24
|
+
}, [ref, ...watchDeps]);
|
|
25
25
|
// 호버 상태 관리
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
const el = ref.current;
|
|
@@ -7,7 +7,10 @@ import { CSSProperties, RefObject, useEffect, useRef, useState } from 'react';
|
|
|
7
7
|
*/
|
|
8
8
|
type MaybeDivRef = RefObject<HTMLDivElement | null> | undefined;
|
|
9
9
|
|
|
10
|
-
export function useHoverScrollbar(
|
|
10
|
+
export function useHoverScrollbar(
|
|
11
|
+
refParam?: MaybeDivRef,
|
|
12
|
+
watchDeps: any[] = []
|
|
13
|
+
): {
|
|
11
14
|
ref: RefObject<HTMLDivElement | null>;
|
|
12
15
|
style: CSSProperties;
|
|
13
16
|
} {
|
|
@@ -38,7 +41,7 @@ export function useHoverScrollbar(refParam?: MaybeDivRef): {
|
|
|
38
41
|
resizeObserver.disconnect();
|
|
39
42
|
window.removeEventListener('resize', checkScroll);
|
|
40
43
|
};
|
|
41
|
-
}, [ref]);
|
|
44
|
+
}, [ref, ...watchDeps]);
|
|
42
45
|
|
|
43
46
|
// 호버 상태 관리
|
|
44
47
|
useEffect(() => {
|
|
@@ -79,8 +79,9 @@ const SeoConsulting = ({ tel, customTitle }) => {
|
|
|
79
79
|
<p className={'mt-[4px] text-[16px] leading-[1.25] tracking-[-1.1px] ' +
|
|
80
80
|
//640px
|
|
81
81
|
'max-sm:hidden '}>
|
|
82
|
-
365일 24시간
|
|
83
|
-
<br className="2sm:hidden"/>
|
|
82
|
+
365일 24시간
|
|
83
|
+
<br className="2sm:hidden"/>
|
|
84
|
+
상담접수가능
|
|
84
85
|
</p>
|
|
85
86
|
</span>
|
|
86
87
|
<Image src={CallImg} alt={'전화예약'} width={116} height={116} className={'aspect-square w-[60px] max-w-[60px] ' +
|
|
@@ -115,8 +115,9 @@ const SeoConsulting = ({ tel, customTitle }: { tel: string; customTitle?: string
|
|
|
115
115
|
'max-sm:hidden '
|
|
116
116
|
}
|
|
117
117
|
>
|
|
118
|
-
365일 24시간
|
|
119
|
-
<br className="2sm:hidden" />
|
|
118
|
+
365일 24시간
|
|
119
|
+
<br className="2sm:hidden" />
|
|
120
|
+
상담접수가능
|
|
120
121
|
</p>
|
|
121
122
|
</span>
|
|
122
123
|
<Image
|
|
@@ -104,7 +104,7 @@ export const strengthList: { subTitle: string; title: string; list: { liTitle: s
|
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
subTitle: '전 세계 사무소 *world_office_cnt*+/365일 24시
|
|
107
|
+
subTitle: '전 세계 사무소 *world_office_cnt*+/365일 24시 상담접수 가능',
|
|
108
108
|
title: '고객과 가장 가까운 대형로펌\n대륜이 당신 곁에 항상 있겠습니다',
|
|
109
109
|
list: [
|
|
110
110
|
{
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import React, { Suspense, useEffect } from 'react';
|
|
4
|
-
import { usePathname
|
|
5
|
-
import Image from 'next/image';
|
|
6
|
-
import PageWrapper from '../../Layout/PageWrapper';
|
|
7
|
-
import { setCookie } from '../../../lib';
|
|
8
|
-
import LoginBreadCrumb from './LoginComp/LoginBreadCrumb';
|
|
4
|
+
import { usePathname } from 'next/navigation';
|
|
9
5
|
import LoginContainer from './LoginComp/LoginContainer';
|
|
10
6
|
import { ILoginInfo } from './_types/login';
|
|
11
7
|
import { fetchUserData } from './_api/fetchUserData';
|
|
@@ -15,6 +11,7 @@ interface props {
|
|
|
15
11
|
state: string;
|
|
16
12
|
isTestLogin?: boolean;
|
|
17
13
|
}
|
|
14
|
+
|
|
18
15
|
const Login = ({
|
|
19
16
|
layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[1000px] w-full overflow-hidden bg-white font-[SUIT] ' +
|
|
20
17
|
' max-3xl:max-h-[1080px] max-3xl:min-h-[1000px] ' +
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
import React, { useEffect } from 'react';
|
|
12
|
-
import { usePathname,
|
|
12
|
+
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
|
|
13
13
|
import Image from 'next/image';
|
|
14
14
|
import PageWrapper from '../../../Layout/PageWrapper';
|
|
15
15
|
import { setCookie } from '../../../../lib';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import React, { useEffect } from 'react';
|
|
4
|
-
import { usePathname,
|
|
4
|
+
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
|
|
5
5
|
import Image from 'next/image';
|
|
6
6
|
import PageWrapper from '../../../Layout/PageWrapper';
|
|
7
7
|
import { setCookie } from '../../../../lib';
|
|
@@ -12,6 +12,7 @@ interface props {
|
|
|
12
12
|
state: string;
|
|
13
13
|
isTestLogin?: boolean;
|
|
14
14
|
}
|
|
15
|
+
|
|
15
16
|
const LoginContainer = ({
|
|
16
17
|
layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[1000px] w-full overflow-hidden bg-white font-[SUIT] ' +
|
|
17
18
|
' max-3xl:max-h-[1080px] max-3xl:min-h-[1000px] ' +
|
|
@@ -28,8 +28,6 @@ import Loader from '../../../Loader/Loader';
|
|
|
28
28
|
import { ITermType } from '../_types/termType';
|
|
29
29
|
import OptionalCheckBox from './Sign/OptionalCheckBox';
|
|
30
30
|
import { optionalTermAgree } from '../_api/optionalTermAgree';
|
|
31
|
-
import createToken from '../_api/createTokenAndFetchUser';
|
|
32
|
-
import { signRedirect } from '../_api/signRedirect';
|
|
33
31
|
|
|
34
32
|
interface IUser {
|
|
35
33
|
name: string;
|
|
@@ -14,7 +14,7 @@ import Fetch from './_fetch/fetch';
|
|
|
14
14
|
import checkThirdPartyCookie from './_api/checkThirdPartyCookie';
|
|
15
15
|
import { fetchAuthCallback } from './_api/fetchAuthCallback';
|
|
16
16
|
import { fetchUserData } from './_api/fetchUserData';
|
|
17
|
-
import { deleteToken } from
|
|
17
|
+
import { deleteToken } from './_api/token';
|
|
18
18
|
const LoginShareCheckContainer = ({ children, setUserInfo }) => {
|
|
19
19
|
const router = useRouter();
|
|
20
20
|
const pathName = usePathname();
|
|
@@ -7,7 +7,7 @@ import { ILoginInfo } from './_types/login';
|
|
|
7
7
|
import checkThirdPartyCookie from './_api/checkThirdPartyCookie';
|
|
8
8
|
import { fetchAuthCallback } from './_api/fetchAuthCallback';
|
|
9
9
|
import { fetchUserData } from './_api/fetchUserData';
|
|
10
|
-
import { deleteToken } from
|
|
10
|
+
import { deleteToken } from './_api/token';
|
|
11
11
|
|
|
12
12
|
interface Props {
|
|
13
13
|
children: ReactNode;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { Suspense, useEffect } from 'react';
|
|
3
3
|
import SignContainer from './LoginComp/SignContainer';
|
|
4
4
|
import { ILoginInfo } from './_types/login';
|
|
5
|
-
import { usePathname
|
|
5
|
+
import { usePathname } from 'next/navigation';
|
|
6
6
|
import { fetchUserData } from './_api/fetchUserData';
|
|
7
7
|
|
|
8
8
|
type props = {
|
|
@@ -26,7 +26,7 @@ const ContactInfo = ({ id }) => {
|
|
|
26
26
|
const { data: list, isLoading, isFetched } = useActionGetContact(id);
|
|
27
27
|
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] pb-[40px] 2sm:px-[40px] sm-top:mt-[24px] sm-top:px-[50px] sm-top:pb-[60px] sm-top:pt-[56px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
28
28
|
{isLoading ? (<Loading />) : (<>
|
|
29
|
-
{!list && isFetched ? (<div className="mt-[60px] flex flex-col items-center justify-center sm-top:mb-[150px] sm-top:mt-[110px] lg:mt-[126px]">
|
|
29
|
+
{!(list === null || list === void 0 ? void 0 : list.result) && isFetched ? (<div className="mt-[60px] flex flex-col items-center justify-center sm-top:mb-[150px] sm-top:mt-[110px] lg:mt-[126px]">
|
|
30
30
|
<Image src={contractIcon} alt="contact_empty" width={100} height={100} className="h-[43.63px] w-[36px] sm-top:h-[50.9px] sm-top:w-[42px] lg:h-[63.01px] lg:w-[52px]"/>
|
|
31
31
|
<div className="mt-[12.38px] sm-top:mt-[24.1px] lg:mt-[40px]">
|
|
32
32
|
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-center">
|
|
@@ -46,7 +46,7 @@ const ContactInfo = ({ id }: { id: string }) => {
|
|
|
46
46
|
<Loading />
|
|
47
47
|
) : (
|
|
48
48
|
<>
|
|
49
|
-
{!list && isFetched ? (
|
|
49
|
+
{!list?.result && isFetched ? (
|
|
50
50
|
<div className="mt-[60px] flex flex-col items-center justify-center sm-top:mb-[150px] sm-top:mt-[110px] lg:mt-[126px]">
|
|
51
51
|
<Image
|
|
52
52
|
src={contractIcon}
|
|
@@ -16,7 +16,7 @@ const Line = ({ title, content, isFirst = false }) => {
|
|
|
16
16
|
</div>);
|
|
17
17
|
};
|
|
18
18
|
const DetailInfo = ({ detailList, isLoading }) => {
|
|
19
|
-
var _a, _b, _c
|
|
19
|
+
var _a, _b, _c;
|
|
20
20
|
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'px-[20px] 2sm:px-[40px] pt-[30px] pb-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[50px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
21
21
|
{isLoading ? (<Loading />) : (<>
|
|
22
22
|
<Line title="사건번호" content={detailList === null || detailList === void 0 ? void 0 : detailList.case_number} isFirst/>
|
|
@@ -25,12 +25,12 @@ const DetailInfo = ({ detailList, isLoading }) => {
|
|
|
25
25
|
<Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
|
|
26
26
|
<Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.accept_date}/>
|
|
27
27
|
<Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
|
|
28
|
-
<Line title="담당 변호사" content={detailList
|
|
29
|
-
<Line title="담당 전문가" content={
|
|
30
|
-
<Line title="담당 비서" content={
|
|
31
|
-
<Line title="나의 정보" content={`${(
|
|
28
|
+
{/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
|
|
29
|
+
{/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
|
|
30
|
+
{/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
|
|
31
|
+
<Line title="나의 정보" content={`${(_a = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _a === void 0 ? void 0 : _a.position} / ${(_b = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _b === void 0 ? void 0 : _b.name} / ${(_c = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _c === void 0 ? void 0 : _c.tel}`}/>
|
|
32
32
|
<Line title="상대방 정보" content={(detailList === null || detailList === void 0 ? void 0 : detailList.other_info.length) > 0
|
|
33
|
-
? detailList === null || detailList === void 0 ? void 0 : detailList.other_info.map((info, index) => `${info.position} / ${info.name} / ${info.tel}
|
|
33
|
+
? detailList === null || detailList === void 0 ? void 0 : detailList.other_info.map((info, index) => { var _a, _b, _c; return `${(_a = info.position) !== null && _a !== void 0 ? _a : '-'} / ${(_b = info.name) !== null && _b !== void 0 ? _b : '-'} / ${(_c = info.tel) !== null && _c !== void 0 ? _c : '-'}`; })
|
|
34
34
|
: '-'}/>
|
|
35
35
|
<Link href="https://www.scourt.go.kr/portal/information/events/search/search.jsp" target="_blank" rel="noopener noreferrer" className={'itesm-center top-[16px] mt-[16px] flex w-full justify-end sm-top:mt-[20px]'}>
|
|
36
36
|
<div className="flex flex-row items-center gap-[8px] lg:gap-[12px]">
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { useQuery } from 'react-query';
|
|
2
|
-
import getCase from '../../_fetchers/getCase';
|
|
3
|
-
import { useState } from 'react';
|
|
4
1
|
import { DetailList } from '../../_type/type';
|
|
5
2
|
import Image from 'next/image';
|
|
6
3
|
import Link from 'next/link';
|
|
7
4
|
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
8
5
|
import Loading from '../../_component/_loading/Loading';
|
|
9
6
|
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
7
|
+
|
|
10
8
|
const Line = ({
|
|
11
9
|
title,
|
|
12
10
|
content,
|
|
@@ -52,9 +50,9 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
|
|
|
52
50
|
<Line title="진행단계" content={detailList?.state} />
|
|
53
51
|
<Line title="사건 시작일" content={detailList?.accept_date} />
|
|
54
52
|
<Line title="사건 종료일" content={detailList?.end_date} />
|
|
55
|
-
<Line title="담당 변호사" content={detailList?.lawyer} />
|
|
56
|
-
<Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} />
|
|
57
|
-
<Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} />
|
|
53
|
+
{/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
|
|
54
|
+
{/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
|
|
55
|
+
{/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
|
|
58
56
|
<Line
|
|
59
57
|
title="나의 정보"
|
|
60
58
|
content={`${detailList?.my_info?.position} / ${detailList?.my_info?.name} / ${detailList?.my_info?.tel}`}
|
|
@@ -64,7 +62,8 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
|
|
|
64
62
|
content={
|
|
65
63
|
detailList?.other_info.length > 0
|
|
66
64
|
? detailList?.other_info.map(
|
|
67
|
-
(info, index) =>
|
|
65
|
+
(info, index) =>
|
|
66
|
+
`${info.position ?? '-'} / ${info.name ?? '-'} / ${info.tel ?? '-'}`
|
|
68
67
|
)
|
|
69
68
|
: '-'
|
|
70
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import React, { useEffect, useState
|
|
2
|
+
import React, { Suspense, useEffect, useState } from 'react';
|
|
3
3
|
import IntroWrapper from '../../_component/_layout/IntroWrapper';
|
|
4
4
|
import SubMenuButton from '../../_component/_button/SubMenuButton';
|
|
5
5
|
import HeaderLayout from '../../_component/_layout/HeaderLayout';
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import React, { useEffect, useState
|
|
3
|
+
import React, { Suspense, useEffect, useState } from 'react';
|
|
4
4
|
import IntroWrapper from '../../_component/_layout/IntroWrapper';
|
|
5
|
-
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
6
5
|
import SubMenuButton from '../../_component/_button/SubMenuButton';
|
|
7
6
|
import HeaderLayout from '../../_component/_layout/HeaderLayout';
|
|
8
7
|
import DetailInfo from './../_component/DetailInfo';
|
|
9
|
-
import { useParams,
|
|
10
|
-
import {
|
|
11
|
-
import getCase from '../../_fetchers/getCase';
|
|
12
|
-
import { DetailList, FetchType, FileList, Question, TimeLineData } from '../../_type/type';
|
|
8
|
+
import { useParams, useRouter, useSearchParams } from 'next/navigation';
|
|
9
|
+
import { DetailList, FileList, Question, TimeLineData } from '../../_type/type';
|
|
13
10
|
import {
|
|
14
11
|
useActionGetCourtFileList,
|
|
15
12
|
useActionGetDetailList,
|
|
@@ -26,6 +23,7 @@ import ContactInfo from './../_component/ContactInfo';
|
|
|
26
23
|
import CaseInquiry from './../_component/_caseInquiry/CaseInquiry';
|
|
27
24
|
import CaseTabSwiper from '../../_component/_table/CaseTabSwiper';
|
|
28
25
|
import Document from './_document/Document';
|
|
26
|
+
|
|
29
27
|
const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
|
|
30
28
|
const [selected, setSelected] = useState<string>('사건 정보');
|
|
31
29
|
const router = useRouter();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
|
-
import { useRef, useState
|
|
3
|
+
import { Suspense, useRef, useState } from 'react';
|
|
4
4
|
import CaseInquiryAddModal from '../_modal/CaseInquiryAddModal';
|
|
5
5
|
import EmptyTable from '../../../_component/_empty/EmptyTable';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
3
|
import { Question } from '../../../_type/type';
|
|
4
|
-
import {
|
|
4
|
+
import { Suspense, useRef, useState } from 'react';
|
|
5
5
|
import CaseInquiryAddModal from '../_modal/CaseInquiryAddModal';
|
|
6
6
|
import EmptyTable from '../../../_component/_empty/EmptyTable';
|
|
7
7
|
import dayjs from 'dayjs';
|
|
@@ -11,6 +11,7 @@ import client from '../../../../../../asset/images/myCase/icon/client.webp';
|
|
|
11
11
|
import daeryun from '../../../../../../asset/images/myCase/icon/daeryun.webp';
|
|
12
12
|
import arrowB from '../../../../../../asset/images/myCase/arrow_b.webp';
|
|
13
13
|
import Loading from '../../../_component/_loading/Loading';
|
|
14
|
+
|
|
14
15
|
const AnswerBox = ({
|
|
15
16
|
item,
|
|
16
17
|
isOpen,
|
|
@@ -12,11 +12,11 @@ import dayjs from 'dayjs';
|
|
|
12
12
|
import { useEffect, useState } from 'react';
|
|
13
13
|
import hwp from '../../../../../../asset/images/myCase/icon/hwp.webp';
|
|
14
14
|
import jpg from '../../../../../../asset/images/myCase/icon/jpg.webp';
|
|
15
|
+
import jpeg from '../../../../../../asset/images/myCase/icon/jpg.webp';
|
|
15
16
|
import pdf from '../../../../../../asset/images/myCase/icon/pdf.webp';
|
|
16
17
|
import png from '../../../../../../asset/images/myCase/icon/png.webp';
|
|
17
18
|
import word from '../../../../../../asset/images/myCase/icon/word.webp';
|
|
18
19
|
import xls from '../../../../../../asset/images/myCase/icon/xls.webp';
|
|
19
|
-
import jpeg from '../../../../../../asset/images/myCase/icon/jpg.webp';
|
|
20
20
|
import unkown from '../../../../../../asset/images/myCase/icon/defaultIcon.webp';
|
|
21
21
|
import download from '../../../../../../asset/images/myCase/icon/download.webp';
|
|
22
22
|
const icon = {
|
|
@@ -4,11 +4,11 @@ import { FileList } from '../../../_type/type';
|
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
5
|
import hwp from '../../../../../../asset/images/myCase/icon/hwp.webp';
|
|
6
6
|
import jpg from '../../../../../../asset/images/myCase/icon/jpg.webp';
|
|
7
|
+
import jpeg from '../../../../../../asset/images/myCase/icon/jpg.webp';
|
|
7
8
|
import pdf from '../../../../../../asset/images/myCase/icon/pdf.webp';
|
|
8
9
|
import png from '../../../../../../asset/images/myCase/icon/png.webp';
|
|
9
10
|
import word from '../../../../../../asset/images/myCase/icon/word.webp';
|
|
10
11
|
import xls from '../../../../../../asset/images/myCase/icon/xls.webp';
|
|
11
|
-
import jpeg from '../../../../../../asset/images/myCase/icon/jpg.webp';
|
|
12
12
|
import unkown from '../../../../../../asset/images/myCase/icon/defaultIcon.webp';
|
|
13
13
|
import download from '../../../../../../asset/images/myCase/icon/download.webp';
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { useDropzone } from 'react-dropzone';
|
|
11
|
-
import {
|
|
11
|
+
import { useCallback, useState } from 'react';
|
|
12
12
|
import { useActionPostMyFileUpload } from '../../../_actions/action';
|
|
13
13
|
const FileUpload = ({ id, refetch }) => {
|
|
14
14
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useDropzone } from 'react-dropzone';
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useState } from 'react';
|
|
3
3
|
import { useActionPostMyFileUpload } from '../../../_actions/action';
|
|
4
4
|
|
|
5
5
|
const FileUpload = ({ id, refetch }: { id: string; refetch: () => void }) => {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import ModalContainer from './ModalCotainer';
|
|
3
3
|
import TextArea from '../_textarea/TextArea';
|
|
4
|
-
import {
|
|
4
|
+
import { useState } from 'react';
|
|
5
5
|
import { useActionPostMyCaseQuestion } from '../../../_actions/action';
|
|
6
6
|
import Loading from '../../../_component/_loading/Loading';
|
|
7
7
|
import CaseInquiryConfirmModal from './CaseInquiryConfirmModal';
|
|
8
8
|
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
9
|
+
|
|
9
10
|
const CaseInquiryAddModal = ({
|
|
10
11
|
isOpen,
|
|
11
12
|
onClose,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import ModalContainer from './ModalCotainer';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useState } from 'react';
|
|
5
5
|
|
|
6
6
|
import close from '../../../../../../asset/images/myCase/icon/close.webp';
|
|
7
7
|
import { ContractImage } from '../../../_type/type';
|
|
@@ -16,7 +16,7 @@ const ModalContainer = ({ isOpen, onClose, children }) => {
|
|
|
16
16
|
return ReactDOM.createPortal(isOpen && (<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-[#3D3D3DCC] " // z-index를 높게 설정
|
|
17
17
|
onClick={onClose} // 배경 클릭 시 모달 닫기
|
|
18
18
|
>
|
|
19
|
-
<div className="flex
|
|
19
|
+
<div className="z-60 flex h-full w-full items-center justify-center" // z-index를 더 높게 설정
|
|
20
20
|
>
|
|
21
21
|
{children}
|
|
22
22
|
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
|
+
|
|
3
4
|
interface ModalContainerProps {
|
|
4
5
|
isOpen: boolean; // 모달 열림 상태
|
|
5
6
|
onClose: () => void; // 모달 닫기 함수
|
|
@@ -26,7 +27,7 @@ const ModalContainer: React.FC<ModalContainerProps> = ({ isOpen, onClose, childr
|
|
|
26
27
|
onClick={onClose} // 배경 클릭 시 모달 닫기
|
|
27
28
|
>
|
|
28
29
|
<div
|
|
29
|
-
className="flex
|
|
30
|
+
className="z-60 flex h-full w-full items-center justify-center" // z-index를 더 높게 설정
|
|
30
31
|
>
|
|
31
32
|
{children}
|
|
32
33
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const TextArea = ({ placeholder, value, onChange, isCheck }) => {
|
|
2
|
-
return (<textarea value={value} className={`body_medium2_mo sm-top:
|
|
2
|
+
return (<textarea value={value} className={`body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 h-[232px] w-full resize-none rounded-[10px] border border-solid p-[16px] placeholder:text-grayScale3 sm-top:h-[368px] sm-top:p-[32px] lg:h-[512px] lg:p-[36px] ${isCheck ? 'border-mycaseMainColor' : 'border-grayScale5'}`} placeholder={placeholder} onChange={onChange}/>);
|
|
3
3
|
};
|
|
4
4
|
export default TextArea;
|
|
@@ -12,7 +12,7 @@ const TextArea = ({
|
|
|
12
12
|
return (
|
|
13
13
|
<textarea
|
|
14
14
|
value={value}
|
|
15
|
-
className={`body_medium2_mo sm-top:
|
|
15
|
+
className={`body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 h-[232px] w-full resize-none rounded-[10px] border border-solid p-[16px] placeholder:text-grayScale3 sm-top:h-[368px] sm-top:p-[32px] lg:h-[512px] lg:p-[36px] ${
|
|
16
16
|
isCheck ? 'border-mycaseMainColor' : 'border-grayScale5'
|
|
17
17
|
}`}
|
|
18
18
|
placeholder={placeholder}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DetailList, FetchType, FileList, PaymentList, Question, TimeLineData } from '../_type/type';
|
|
2
2
|
export declare const useActionGetCaseList: ({ tapState, pageNumber, pageSize }: {
|
|
3
3
|
tapState: string;
|
|
4
4
|
pageNumber: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMutation, useQuery } from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
2
|
+
import { DetailList, FetchType, FileList, PaymentList, Question, TimeLineData } from '../_type/type';
|
|
3
3
|
import getCase from '../_fetchers/getCase';
|
|
4
4
|
import getTimeLine from '../_fetchers/getTimeLine';
|
|
5
5
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Suspense, useState } from 'react';
|
|
2
2
|
import CaseLayout from './_layout/CaseLayout';
|
|
3
3
|
|
|
4
4
|
import EmptyTable from './_empty/EmptyTable';
|
|
5
5
|
import { useRouter, useSearchParams } from 'next/navigation';
|
|
6
6
|
import Loading from './_loading/Loading';
|
|
7
7
|
import { useActionGetCaseList } from '../_actions/action';
|
|
8
|
-
import CaseTabSwiper from './_table/CaseTabSwiper';
|
|
9
8
|
import CaseTableMo from './_table/CaseTableMo';
|
|
10
9
|
|
|
11
10
|
const CaseTap = ({
|
|
@@ -6,6 +6,7 @@ import Link from 'next/link';
|
|
|
6
6
|
import home from '../../../../../asset/images/myCase/home.webp';
|
|
7
7
|
import navArr from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
8
8
|
import arrow2 from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
9
|
+
|
|
9
10
|
type CategoryMenuType = {
|
|
10
11
|
// t: (key: string) => string;
|
|
11
12
|
isMargin?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { twMerge } from 'tailwind-merge';
|
|
2
2
|
const SubColor1Button = ({ title, onClick, isSelected, outerClassName }) => {
|
|
3
|
-
return (<button className={twMerge(`swiper-slide
|
|
4
|
-
<p className={'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px]
|
|
3
|
+
return (<button className={twMerge(`swiper-slide flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`, outerClassName)} onClick={onClick}>
|
|
4
|
+
<p className={'label_large1_mo sm-top:label_large1_tb lg:label_large1 sm-top:text-[16px] md2:text-[18px] lg:text-[18px] xl:text-[20px] '}>
|
|
5
5
|
{title}
|
|
6
6
|
</p>
|
|
7
7
|
</button>);
|
|
@@ -14,14 +14,14 @@ const SubColor1Button = ({
|
|
|
14
14
|
return (
|
|
15
15
|
<button
|
|
16
16
|
className={twMerge(
|
|
17
|
-
`swiper-slide
|
|
17
|
+
`swiper-slide flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`,
|
|
18
18
|
outerClassName
|
|
19
19
|
)}
|
|
20
20
|
onClick={onClick}
|
|
21
21
|
>
|
|
22
22
|
<p
|
|
23
23
|
className={
|
|
24
|
-
'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px]
|
|
24
|
+
'label_large1_mo sm-top:label_large1_tb lg:label_large1 sm-top:text-[16px] md2:text-[18px] lg:text-[18px] xl:text-[20px] '
|
|
25
25
|
}
|
|
26
26
|
>
|
|
27
27
|
{title}
|