@daeryun/dr_components 0.5.63 → 0.5.64
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.
|
@@ -5,7 +5,7 @@ import Link from 'next/link';
|
|
|
5
5
|
import IconHome from '../../asset/images/categoryMenu/House.svg';
|
|
6
6
|
import IconArrow from '../../asset/images/categoryMenu/right_arrow.svg';
|
|
7
7
|
import { categoryMenuName } from '../../lib';
|
|
8
|
-
import { usePathname
|
|
8
|
+
import { usePathname } from 'next/navigation';
|
|
9
9
|
|
|
10
10
|
type CategoryMenuType = {
|
|
11
11
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function categoryMenuName({ url }) {
|
|
2
2
|
const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
|
|
3
3
|
const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
|
|
4
|
-
const
|
|
4
|
+
const allUrl = window.location.href;
|
|
5
5
|
if (url.includes('/broadcast')) {
|
|
6
6
|
return {
|
|
7
7
|
title: '소식/자료',
|
|
@@ -11,9 +11,9 @@ export function categoryMenuName({ url }) {
|
|
|
11
11
|
}
|
|
12
12
|
else if (url.includes('/greeting')) {
|
|
13
13
|
return {
|
|
14
|
-
title:
|
|
14
|
+
title: allUrl.includes('debtcollection')
|
|
15
15
|
? '대륜소개'
|
|
16
|
-
:
|
|
16
|
+
: allUrl.includes('consulting') || allUrl.includes('mergers')
|
|
17
17
|
? '센터소개'
|
|
18
18
|
: '그룹소개',
|
|
19
19
|
subTitle: '비전',
|
|
@@ -38,7 +38,7 @@ export function categoryMenuName({ url }) {
|
|
|
38
38
|
else if (url.includes('/success')) {
|
|
39
39
|
return {
|
|
40
40
|
title: '업무사례',
|
|
41
|
-
subTitle: (
|
|
41
|
+
subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '업무사례',
|
|
42
42
|
address: 'success'
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ export function categoryMenuName({ url }) {
|
|
|
48
48
|
else if (url.includes('/reply')) {
|
|
49
49
|
return {
|
|
50
50
|
title: '업무사례',
|
|
51
|
-
subTitle:
|
|
51
|
+
subTitle: allUrl.includes('divorce') ? '이혼소송·상담후기' : '고객후기',
|
|
52
52
|
address: 'reply'
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -58,7 +58,7 @@ export function categoryMenuName({ url }) {
|
|
|
58
58
|
else if (url.includes('/youtube')) {
|
|
59
59
|
return {
|
|
60
60
|
title: 'SNS',
|
|
61
|
-
subTitle: (
|
|
61
|
+
subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '유튜브',
|
|
62
62
|
address: 'youtube'
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -68,7 +68,7 @@ export function categoryMenuName({ url }) {
|
|
|
68
68
|
else if (url.includes('/choice')) {
|
|
69
69
|
return {
|
|
70
70
|
title: '대륜법률상담예약',
|
|
71
|
-
subTitle: (
|
|
71
|
+
subTitle: (allUrl.includes('divorce') ? '이혼전문 ' : '') + '법률상담접수',
|
|
72
72
|
address: 'choice'
|
|
73
73
|
};
|
|
74
74
|
}
|
|
@@ -115,10 +115,18 @@ export function categoryMenuName({ url }) {
|
|
|
115
115
|
return { title: '업무분야', subTitle: `업무분야`, address: 'field_new' };
|
|
116
116
|
}
|
|
117
117
|
else if (url.includes('/info')) {
|
|
118
|
-
return {
|
|
118
|
+
return {
|
|
119
|
+
title: '업무사례',
|
|
120
|
+
subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
|
|
121
|
+
address: 'info'
|
|
122
|
+
};
|
|
119
123
|
}
|
|
120
124
|
else if (url.includes('/lawInfo_new')) {
|
|
121
|
-
return {
|
|
125
|
+
return {
|
|
126
|
+
title: '법률정보',
|
|
127
|
+
subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
|
|
128
|
+
address: 'info'
|
|
129
|
+
};
|
|
122
130
|
}
|
|
123
131
|
else if (url.includes('/intro')) {
|
|
124
132
|
return { title: '그룹소개', subTitle: '소개', address: 'intro' };
|
|
@@ -129,13 +137,13 @@ export function categoryMenuName({ url }) {
|
|
|
129
137
|
else if (url.includes('/calculation')) {
|
|
130
138
|
return {
|
|
131
139
|
title: '업무분야',
|
|
132
|
-
subTitle:
|
|
140
|
+
subTitle: allUrl.includes('divorce')
|
|
133
141
|
? '이혼 양육비계산기'
|
|
134
|
-
:
|
|
142
|
+
: allUrl.includes('regener')
|
|
135
143
|
? '개인회생·개인파산 신청자격 사전검토'
|
|
136
|
-
:
|
|
144
|
+
: allUrl.includes('inherit')
|
|
137
145
|
? '상속재산계산기(법정상속분)'
|
|
138
|
-
:
|
|
146
|
+
: allUrl.includes('drug')
|
|
139
147
|
? '마약범죄 사전검토'
|
|
140
148
|
: '',
|
|
141
149
|
address: 'calculation'
|
|
@@ -5,7 +5,7 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
5
5
|
} {
|
|
6
6
|
const NEXT_PUBLIC_KEYWORD = process.env.NEXT_PUBLIC_KEYWORD;
|
|
7
7
|
const NEXT_PUBLIC_GROUPNAME = process.env.NEXT_PUBLIC_GROUPNAME;
|
|
8
|
-
const
|
|
8
|
+
const allUrl = window.location.href;
|
|
9
9
|
|
|
10
10
|
if (url.includes('/broadcast')) {
|
|
11
11
|
return {
|
|
@@ -15,12 +15,11 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
15
15
|
};
|
|
16
16
|
} else if (url.includes('/greeting')) {
|
|
17
17
|
return {
|
|
18
|
-
title:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
: '그룹소개',
|
|
18
|
+
title: allUrl.includes('debtcollection')
|
|
19
|
+
? '대륜소개'
|
|
20
|
+
: allUrl.includes('consulting') || allUrl.includes('mergers')
|
|
21
|
+
? '센터소개'
|
|
22
|
+
: '그룹소개',
|
|
24
23
|
subTitle: '비전',
|
|
25
24
|
address: 'greeting'
|
|
26
25
|
};
|
|
@@ -37,7 +36,7 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
37
36
|
} else if (url.includes('/success')) {
|
|
38
37
|
return {
|
|
39
38
|
title: '업무사례',
|
|
40
|
-
subTitle: (
|
|
39
|
+
subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '업무사례',
|
|
41
40
|
address: 'success'
|
|
42
41
|
};
|
|
43
42
|
} else if (url.includes('/archive')) {
|
|
@@ -45,7 +44,7 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
45
44
|
} else if (url.includes('/reply')) {
|
|
46
45
|
return {
|
|
47
46
|
title: '업무사례',
|
|
48
|
-
subTitle:
|
|
47
|
+
subTitle: allUrl.includes('divorce') ? '이혼소송·상담후기' : '고객후기',
|
|
49
48
|
address: 'reply'
|
|
50
49
|
};
|
|
51
50
|
} else if (url.includes('/kin')) {
|
|
@@ -53,7 +52,7 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
53
52
|
} else if (url.includes('/youtube')) {
|
|
54
53
|
return {
|
|
55
54
|
title: 'SNS',
|
|
56
|
-
subTitle: (
|
|
55
|
+
subTitle: (allUrl.includes('divorce') ? '이혼변호사 ' : '') + '유튜브',
|
|
57
56
|
address: 'youtube'
|
|
58
57
|
};
|
|
59
58
|
} else if (url.includes('/lawyer')) {
|
|
@@ -61,7 +60,7 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
61
60
|
} else if (url.includes('/choice')) {
|
|
62
61
|
return {
|
|
63
62
|
title: '대륜법률상담예약',
|
|
64
|
-
subTitle: (
|
|
63
|
+
subTitle: (allUrl.includes('divorce') ? '이혼전문 ' : '') + '법률상담접수',
|
|
65
64
|
address: 'choice'
|
|
66
65
|
};
|
|
67
66
|
} else if (url.includes('/consulting')) {
|
|
@@ -93,9 +92,17 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
93
92
|
} else if (url.includes('/field_new')) {
|
|
94
93
|
return { title: '업무분야', subTitle: `업무분야`, address: 'field_new' };
|
|
95
94
|
} else if (url.includes('/info')) {
|
|
96
|
-
return {
|
|
95
|
+
return {
|
|
96
|
+
title: '업무사례',
|
|
97
|
+
subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
|
|
98
|
+
address: 'info'
|
|
99
|
+
};
|
|
97
100
|
} else if (url.includes('/lawInfo_new')) {
|
|
98
|
-
return {
|
|
101
|
+
return {
|
|
102
|
+
title: '법률정보',
|
|
103
|
+
subTitle: (allUrl.includes('divorce') ? '이혼 ' : '') + '법률정보',
|
|
104
|
+
address: 'info'
|
|
105
|
+
};
|
|
99
106
|
} else if (url.includes('/intro')) {
|
|
100
107
|
return { title: '그룹소개', subTitle: '소개', address: 'intro' };
|
|
101
108
|
} else if (url.includes('/selfcheck')) {
|
|
@@ -103,16 +110,15 @@ export function categoryMenuName({ url }: { url: string }): {
|
|
|
103
110
|
} else if (url.includes('/calculation')) {
|
|
104
111
|
return {
|
|
105
112
|
title: '업무분야',
|
|
106
|
-
subTitle:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
: '',
|
|
113
|
+
subTitle: allUrl.includes('divorce')
|
|
114
|
+
? '이혼 양육비계산기'
|
|
115
|
+
: allUrl.includes('regener')
|
|
116
|
+
? '개인회생·개인파산 신청자격 사전검토'
|
|
117
|
+
: allUrl.includes('inherit')
|
|
118
|
+
? '상속재산계산기(법정상속분)'
|
|
119
|
+
: allUrl.includes('drug')
|
|
120
|
+
? '마약범죄 사전검토'
|
|
121
|
+
: '',
|
|
116
122
|
address: 'calculation'
|
|
117
123
|
};
|
|
118
124
|
} else if (url.includes('/solatium')) {
|