@daeryun/dr_components 0.2.56 → 0.2.58
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Fix/index.jsx +3 -2
- package/dist/components/Fix/index.tsx +3 -2
- package/dist/components/Footer/index.jsx +5 -4
- package/dist/components/Footer/index.tsx +5 -4
- package/dist/components/MapFix/MapFix.jsx +3 -2
- package/dist/components/MapFix/MapFix.tsx +3 -2
- package/dist/components/MapSection/MapSection.jsx +1 -1
- package/dist/components/MapSection/MapSection.tsx +1 -1
- package/dist/components/Menu/MobileMenu.jsx +5 -6
- package/dist/components/Menu/MobileMenu.tsx +5 -6
- package/dist/components/Menu/PCMenu.jsx +4 -5
- package/dist/components/Menu/PCMenu.tsx +4 -6
- package/dist/components/PdfPrintCopyLink/PdfPrintCopyLink.jsx +3 -2
- package/dist/components/PdfPrintCopyLink/PdfPrintCopyLink.tsx +3 -2
- package/dist/components/common/strength/index.js +2 -2
- package/dist/components/common/strength/index.ts +2 -2
- package/dist/components/page/Consulting/Consulting.jsx +2 -2
- package/dist/components/page/Consulting/Consulting.tsx +2 -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
|
@@ -5,13 +5,14 @@ import { insert } from '../../lib';
|
|
|
5
5
|
import * as gtag from '../../lib/gtag';
|
|
6
6
|
import { savePowerLinkConversion } from '../../lib';
|
|
7
7
|
import MyCase from './MyCase';
|
|
8
|
-
import { useRouter } from 'next/
|
|
8
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
9
9
|
import menuXIcon from '../../asset/images/header/menu_x.webp'; // 수정된 부분
|
|
10
10
|
import callLineIcon from '../../asset/images/header/h_call_line_b.webp'; // 수정된 부분
|
|
11
11
|
import newWindowIcon from '../../asset/images/header/image_b.webp'; // 수정된 부분
|
|
12
12
|
const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes }) => {
|
|
13
13
|
const mobile = require('is-mobile');
|
|
14
14
|
const [isMobile, setIsMobile] = useState(false);
|
|
15
|
+
const pathname = usePathname();
|
|
15
16
|
const router = useRouter();
|
|
16
17
|
//나의사건검색
|
|
17
18
|
const [isMyCaseOn, setIsMyCaseOn] = useState(false);
|
|
@@ -38,10 +39,8 @@ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes }) => {
|
|
|
38
39
|
}, []);
|
|
39
40
|
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
40
41
|
const reloadUrl = (url) => {
|
|
41
|
-
if (
|
|
42
|
-
router.push(url)
|
|
43
|
-
router.reload();
|
|
44
|
-
});
|
|
42
|
+
if (pathname === url) {
|
|
43
|
+
router.push(url);
|
|
45
44
|
}
|
|
46
45
|
};
|
|
47
46
|
return (<>
|
|
@@ -6,7 +6,7 @@ import * as gtag from '../../lib/gtag';
|
|
|
6
6
|
import { savePowerLinkConversion } from '../../lib';
|
|
7
7
|
|
|
8
8
|
import MyCase from './MyCase';
|
|
9
|
-
import { useRouter } from 'next/
|
|
9
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
10
10
|
import { IMenuTypes } from './IMenuTypes';
|
|
11
11
|
|
|
12
12
|
import menuXIcon from '../../asset/images/header/menu_x.webp'; // 수정된 부분
|
|
@@ -16,7 +16,7 @@ import newWindowIcon from '../../asset/images/header/image_b.webp'; // 수정된
|
|
|
16
16
|
const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes }: IMenuTypes) => {
|
|
17
17
|
const mobile = require('is-mobile');
|
|
18
18
|
const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
19
|
-
|
|
19
|
+
const pathname = usePathname();
|
|
20
20
|
const router = useRouter();
|
|
21
21
|
|
|
22
22
|
//나의사건검색
|
|
@@ -49,10 +49,8 @@ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes }: IMenuTyp
|
|
|
49
49
|
|
|
50
50
|
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
51
51
|
const reloadUrl = (url: string) => {
|
|
52
|
-
if (
|
|
53
|
-
router.push(url)
|
|
54
|
-
router.reload();
|
|
55
|
-
});
|
|
52
|
+
if (pathname === url) {
|
|
53
|
+
router.push(url);
|
|
56
54
|
}
|
|
57
55
|
};
|
|
58
56
|
|
|
@@ -14,9 +14,10 @@ import Print from '../../asset/images/pdfPrintCopyLink/print.svg';
|
|
|
14
14
|
import Pdf from '../../asset/images/pdfPrintCopyLink/pdf.svg';
|
|
15
15
|
import Share from '../../asset/images/pdfPrintCopyLink/share.svg';
|
|
16
16
|
import Loader from '../Loader/Loader';
|
|
17
|
-
import { useRouter } from 'next/
|
|
17
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
18
18
|
const PdfPrintCopyLink = (props) => {
|
|
19
19
|
const router = useRouter();
|
|
20
|
+
const pathname = usePathname();
|
|
20
21
|
const [isLoading, setIsLoading] = useState(false);
|
|
21
22
|
const [clickFlag, setClickFlag] = useState({
|
|
22
23
|
pdf: false,
|
|
@@ -92,7 +93,7 @@ const PdfPrintCopyLink = (props) => {
|
|
|
92
93
|
};
|
|
93
94
|
return (<div className={'mt-[14px] flex w-full cursor-pointer items-center justify-end sm:mb-[10px] sm:mt-[32px]'}>
|
|
94
95
|
{isLoading ? <Loader fullScreen/> : <></>}
|
|
95
|
-
{
|
|
96
|
+
{pathname.includes('success_template') ? (<></>) : (<>
|
|
96
97
|
<Pdf className={'h-[38px] w-[38px] max-sm:h-7 max-sm:w-7 ' +
|
|
97
98
|
(clickFlag.pdf ? ' fill-[#0D2B4F]' : ' fill-[#6c6c6c]')} onClick={handleGetPdf}/>
|
|
98
99
|
<Print className={'ml-2 h-[42px] w-[42px] cursor-pointer max-sm:ml-[7px] max-sm:h-8 max-sm:w-8 ' +
|
|
@@ -6,10 +6,11 @@ import Print from '../../asset/images/pdfPrintCopyLink/print.svg';
|
|
|
6
6
|
import Pdf from '../../asset/images/pdfPrintCopyLink/pdf.svg';
|
|
7
7
|
import Share from '../../asset/images/pdfPrintCopyLink/share.svg';
|
|
8
8
|
import Loader from '../Loader/Loader';
|
|
9
|
-
import { useRouter } from 'next/
|
|
9
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
10
10
|
|
|
11
11
|
const PdfPrintCopyLink = (props: { fileName: string; printRef?: React.RefObject<any> }) => {
|
|
12
12
|
const router = useRouter();
|
|
13
|
+
const pathname = usePathname();
|
|
13
14
|
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
14
15
|
const [clickFlag, setClickFlag] = useState<{ print: boolean; pdf: boolean; link: boolean }>({
|
|
15
16
|
pdf: false,
|
|
@@ -92,7 +93,7 @@ const PdfPrintCopyLink = (props: { fileName: string; printRef?: React.RefObject<
|
|
|
92
93
|
return (
|
|
93
94
|
<div className={'mt-[14px] flex w-full cursor-pointer items-center justify-end sm:mb-[10px] sm:mt-[32px]'}>
|
|
94
95
|
{isLoading ? <Loader fullScreen /> : <></>}
|
|
95
|
-
{
|
|
96
|
+
{pathname.includes('success_template') ? (
|
|
96
97
|
<></>
|
|
97
98
|
) : (
|
|
98
99
|
<>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const strengthList = [
|
|
2
2
|
{
|
|
3
|
-
subTitle: '
|
|
3
|
+
subTitle: '10년 이상 경력ㆍ20인의 법무법인 TF',
|
|
4
4
|
title: '상담과 수사, 재판 과정에서 베테랑 변호사가\n밀착 변호하고 있습니다',
|
|
5
5
|
list: [
|
|
6
6
|
{
|
|
7
7
|
liTitle: '충분한 상담을 통한 최적의 변호사팀 매칭',
|
|
8
8
|
li: [
|
|
9
|
-
'법원, 검찰, 경찰 재직한
|
|
9
|
+
'법원, 검찰, 경찰 재직한 풍부한 경력을 갖춘 변호사가 사건 총괄',
|
|
10
10
|
'고객의 상황 및 사건 규모에 따라 3~20인의 전문가 TF 구성',
|
|
11
11
|
'사건 처리 주수행 변호사와 서포트 변호사&전문가 팀 구성으로 단독 수행보다 3배 이상의 능률 구현'
|
|
12
12
|
]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const strengthList: { subTitle: string; title: string; list: { liTitle: string; li: string[] }[] }[] = [
|
|
2
2
|
{
|
|
3
|
-
subTitle: '
|
|
3
|
+
subTitle: '10년 이상 경력ㆍ20인의 법무법인 TF',
|
|
4
4
|
title: '상담과 수사, 재판 과정에서 베테랑 변호사가\n밀착 변호하고 있습니다',
|
|
5
5
|
list: [
|
|
6
6
|
{
|
|
7
7
|
liTitle: '충분한 상담을 통한 최적의 변호사팀 매칭',
|
|
8
8
|
li: [
|
|
9
|
-
'법원, 검찰, 경찰 재직한
|
|
9
|
+
'법원, 검찰, 경찰 재직한 풍부한 경력을 갖춘 변호사가 사건 총괄',
|
|
10
10
|
'고객의 상황 및 사건 규모에 따라 3~20인의 전문가 TF 구성',
|
|
11
11
|
'사건 처리 주수행 변호사와 서포트 변호사&전문가 팀 구성으로 단독 수행보다 3배 이상의 능률 구현'
|
|
12
12
|
]
|
|
@@ -15,7 +15,7 @@ import { bodyFetch, formatPhoneNumber, insert, savePowerLinkConversion } from '.
|
|
|
15
15
|
import { SelectBox } from '../../SelectBox/SelectBox';
|
|
16
16
|
import axios from 'axios';
|
|
17
17
|
import mobile from 'is-mobile';
|
|
18
|
-
import { useRouter } from 'next/
|
|
18
|
+
import { useRouter } from 'next/navigation';
|
|
19
19
|
import ChoiceLock from '../../../asset/images/consulting/choice_lock.webp';
|
|
20
20
|
import NewChoiceConsulting from '../../../asset/images/consulting/new_choice_consulting.webp';
|
|
21
21
|
import Loader from '../../Loader/Loader';
|
|
@@ -116,7 +116,7 @@ const Index = (props) => {
|
|
|
116
116
|
}
|
|
117
117
|
if (!obj.isNotComplete) {
|
|
118
118
|
savePowerLinkConversion('online', isMobile);
|
|
119
|
-
router.push(
|
|
119
|
+
router.push('/complete?isConsult=true');
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
@@ -8,7 +8,7 @@ import { bodyFetch, formatPhoneNumber, insert, savePowerLinkConversion } from '.
|
|
|
8
8
|
import { SelectBox } from '../../SelectBox/SelectBox';
|
|
9
9
|
import axios from 'axios';
|
|
10
10
|
import mobile from 'is-mobile';
|
|
11
|
-
import { useRouter } from 'next/
|
|
11
|
+
import { useRouter } from 'next/navigation';
|
|
12
12
|
import ChoiceLock from '../../../asset/images/consulting/choice_lock.webp';
|
|
13
13
|
import NewChoiceConsulting from '../../../asset/images/consulting/new_choice_consulting.webp';
|
|
14
14
|
import Loader from '../../Loader/Loader';
|
|
@@ -129,7 +129,7 @@ const Index = (props: { ace_Click?: () => void }) => {
|
|
|
129
129
|
|
|
130
130
|
if (!obj.isNotComplete) {
|
|
131
131
|
savePowerLinkConversion('online', isMobile);
|
|
132
|
-
router.push(
|
|
132
|
+
router.push('/complete?isConsult=true');
|
|
133
133
|
}
|
|
134
134
|
} else {
|
|
135
135
|
alert('상담 신청에 실패했습니다. 잠시후 다시 시도해주세요.');
|
|
@@ -70,7 +70,7 @@ const StrengthIntro = ({ initialData }) => {
|
|
|
70
70
|
{/*>*/}
|
|
71
71
|
{/* 20*/}
|
|
72
72
|
{/*</span>{' '}*/}
|
|
73
|
-
<LgText isSmall>
|
|
73
|
+
<LgText isSmall>10</LgText> 년<span className={'text-black'}> 이상 경력 </span>
|
|
74
74
|
<br className={'max-xl:hidden max-md:block'}/>
|
|
75
75
|
<span className={'block text-[#AB0634] '}>
|
|
76
76
|
{/*<span*/}
|
|
@@ -106,7 +106,7 @@ const StrengthIntro = ({ initialData }: { initialData: IInitialDataTypes }) => {
|
|
|
106
106
|
{/*>*/}
|
|
107
107
|
{/* 20*/}
|
|
108
108
|
{/*</span>{' '}*/}
|
|
109
|
-
<LgText isSmall>
|
|
109
|
+
<LgText isSmall>10</LgText> 년<span className={'text-black'}> 이상 경력 </span>
|
|
110
110
|
<br className={'max-xl:hidden max-md:block'} />
|
|
111
111
|
<span className={'block text-[#AB0634] '}>
|
|
112
112
|
{/*<span*/}
|