@daeryun/dr_components 0.9.50 → 0.9.52

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.
@@ -9,14 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  /** 쿠키 허용 시 유저 정보 조회 */
11
11
  export const fetchUserData = (cookies) => __awaiter(void 0, void 0, void 0, function* () {
12
- var _a, _b;
12
+ var _a, _b, _c;
13
13
  const result = yield fetch(`${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/lawfirm/app/user`, {
14
14
  method: 'GET',
15
15
  headers: Object.assign({ 'Content-Type': 'application/json' }, (cookies !== '' ? { Cookie: cookies } : {})),
16
16
  cache: 'no-cache',
17
17
  credentials: 'include'
18
18
  }).then(res => res.json());
19
- if (((_a = result.data) === null || _a === void 0 ? void 0 : _a.email) && ((_b = result.data) === null || _b === void 0 ? void 0 : _b.name)) {
19
+ if (((_a = result.data) === null || _a === void 0 ? void 0 : _a.email) && ((_b = result.data) === null || _b === void 0 ? void 0 : _b.name) && ((_c = result === null || result === void 0 ? void 0 : result.data) === null || _c === void 0 ? void 0 : _c.phone_number)) {
20
20
  return { email: result.data.email, name: result.data.name, provider: result.data.provider, isLogin: true };
21
21
  }
22
22
  return { isLogin: false, provider: '', name: '', email: '' };
@@ -12,7 +12,7 @@ export const fetchUserData = async (cookies?: string): Promise<ILoginInfo> => {
12
12
  credentials: 'include'
13
13
  }).then(res => res.json());
14
14
 
15
- if (result.data?.email && result.data?.name) {
15
+ if (result.data?.email && result.data?.name && result?.data?.phone_number) {
16
16
  return { email: result.data.email, name: result.data.name, provider: result.data.provider, isLogin: true };
17
17
  }
18
18
  return { isLogin: false, provider: '', name: '', email: '' };
@@ -2595,6 +2595,10 @@ video {
2595
2595
  height: 1px;
2596
2596
  }
2597
2597
 
2598
+ .h-screen {
2599
+ height: 100vh;
2600
+ }
2601
+
2598
2602
  .\!max-h-fit {
2599
2603
  max-height: -moz-fit-content !important;
2600
2604
  max-height: fit-content !important;