@daeryun/dr_components 1.0.27 → 1.0.29
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/page/Login/LoginComp/SignContainer.jsx +69 -58
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +68 -68
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.jsx +2 -2
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.tsx +2 -2
- package/dist/components/page/Login/Personal.jsx +49 -24
- package/dist/components/page/Login/Personal.tsx +76 -41
- package/dist/components/page/Login/StepOne.jsx +4 -1
- package/dist/components/page/Login/StepOne.tsx +4 -1
- package/dist/components/page/Login/StepTwo.jsx +4 -1
- package/dist/components/page/Login/StepTwo.tsx +4 -1
- package/dist/components/page/Login/_api/optionalTermAgree.d.ts +1 -0
- package/dist/components/page/Login/_api/optionalTermAgree.js +3 -0
- package/dist/components/page/Login/_api/optionalTermAgree.ts +8 -1
- package/dist/styles/globals.css +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -183,7 +183,10 @@ const StepOne = () => {
|
|
|
183
183
|
const marketingResponse = yield fetch(`/api/lawfirm/app/user/agree`, {
|
|
184
184
|
method: 'POST',
|
|
185
185
|
headers: { 'Content-Type': 'application/json' },
|
|
186
|
-
body: JSON.stringify({
|
|
186
|
+
body: JSON.stringify({
|
|
187
|
+
marketing_agree: bodyData.marketing_agree,
|
|
188
|
+
alert_agree: bodyData.marketing_agree
|
|
189
|
+
}) // 회원가입 시에는 alert_agree도 똑같이 들어가게
|
|
187
190
|
});
|
|
188
191
|
if (!marketingResponse.ok) {
|
|
189
192
|
throw new Error('마케팅 동의 API 호출 실패');
|
|
@@ -247,7 +247,10 @@ const StepOne = () => {
|
|
|
247
247
|
const marketingResponse = await fetch(`/api/lawfirm/app/user/agree`, {
|
|
248
248
|
method: 'POST',
|
|
249
249
|
headers: { 'Content-Type': 'application/json' },
|
|
250
|
-
body: JSON.stringify({
|
|
250
|
+
body: JSON.stringify({
|
|
251
|
+
marketing_agree: bodyData.marketing_agree,
|
|
252
|
+
alert_agree: bodyData.marketing_agree
|
|
253
|
+
}) // 회원가입 시에는 alert_agree도 똑같이 들어가게
|
|
251
254
|
});
|
|
252
255
|
|
|
253
256
|
if (!marketingResponse.ok) {
|
|
@@ -217,7 +217,10 @@ const StepTwo = () => {
|
|
|
217
217
|
const marketingResponse = yield fetch(`/api/lawfirm/app/user/agree`, {
|
|
218
218
|
method: 'POST',
|
|
219
219
|
headers: { 'Content-Type': 'application/json' },
|
|
220
|
-
body: JSON.stringify({
|
|
220
|
+
body: JSON.stringify({
|
|
221
|
+
marketing_agree: bodyData.marketing_agree,
|
|
222
|
+
alert_agree: bodyData.marketing_agree
|
|
223
|
+
}) // 회원가입 시에는 alert_agree도 똑같이 들어가게
|
|
221
224
|
});
|
|
222
225
|
if (!marketingResponse.ok) {
|
|
223
226
|
throw new Error('마케팅 동의 API 호출 실패');
|
|
@@ -281,7 +281,10 @@ const StepTwo = () => {
|
|
|
281
281
|
const marketingResponse = await fetch(`/api/lawfirm/app/user/agree`, {
|
|
282
282
|
method: 'POST',
|
|
283
283
|
headers: { 'Content-Type': 'application/json' },
|
|
284
|
-
body: JSON.stringify({
|
|
284
|
+
body: JSON.stringify({
|
|
285
|
+
marketing_agree: bodyData.marketing_agree,
|
|
286
|
+
alert_agree: bodyData.marketing_agree
|
|
287
|
+
}) // 회원가입 시에는 alert_agree도 똑같이 들어가게
|
|
285
288
|
});
|
|
286
289
|
|
|
287
290
|
if (!marketingResponse.ok) {
|
|
@@ -13,6 +13,9 @@ export const optionalTermAgree = (_a) => __awaiter(void 0, [_a], void 0, functio
|
|
|
13
13
|
if (!VALID_VALUES.includes(bodyData.marketing_agree)) {
|
|
14
14
|
return { result: false };
|
|
15
15
|
}
|
|
16
|
+
if (!VALID_VALUES.includes(bodyData.alert_agree)) {
|
|
17
|
+
return { result: false };
|
|
18
|
+
}
|
|
16
19
|
try {
|
|
17
20
|
const res = yield Fetch(`/api/lawfirm/app/user/agree`, {
|
|
18
21
|
method: 'POST',
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import Fetch from '../_fetch/fetch';
|
|
2
2
|
|
|
3
|
-
export const optionalTermAgree = async ({
|
|
3
|
+
export const optionalTermAgree = async ({
|
|
4
|
+
bodyData
|
|
5
|
+
}: {
|
|
6
|
+
bodyData: { alert_agree: number; marketing_agree: number };
|
|
7
|
+
}) => {
|
|
4
8
|
const VALID_VALUES = Array.from({ length: 16 }, (_, i) => i);
|
|
5
9
|
if (!VALID_VALUES.includes(bodyData.marketing_agree)) {
|
|
6
10
|
return { result: false };
|
|
7
11
|
}
|
|
12
|
+
if (!VALID_VALUES.includes(bodyData.alert_agree)) {
|
|
13
|
+
return { result: false };
|
|
14
|
+
}
|
|
8
15
|
|
|
9
16
|
try {
|
|
10
17
|
const res = await Fetch(`/api/lawfirm/app/user/agree`, {
|
package/dist/styles/globals.css
CHANGED
|
@@ -11422,8 +11422,8 @@ body {
|
|
|
11422
11422
|
width: 20px;
|
|
11423
11423
|
}
|
|
11424
11424
|
|
|
11425
|
-
.max-lg2\:w-\[
|
|
11426
|
-
width:
|
|
11425
|
+
.max-lg2\:w-\[370px\] {
|
|
11426
|
+
width: 370px;
|
|
11427
11427
|
}
|
|
11428
11428
|
|
|
11429
11429
|
.max-lg2\:w-\[calc\(100\%-420px\)\] {
|