@daeryun/dr_components 1.2.26 → 1.2.27

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.
@@ -3,6 +3,7 @@ interface props {
3
3
  layoutClassName?: string;
4
4
  state: string;
5
5
  isTestLogin?: boolean;
6
+ isCheckRecentLogin?: boolean;
6
7
  }
7
- declare const Login: ({ layoutClassName, state, isTestLogin }: props) => React.JSX.Element;
8
+ declare const Login: ({ layoutClassName, state, isTestLogin, isCheckRecentLogin }: props) => React.JSX.Element;
8
9
  export default Login;
@@ -2,7 +2,7 @@
2
2
  import React, { Suspense } from 'react';
3
3
  import LoginContainer from './LoginComp/LoginContainer';
4
4
  const Login = ({ layoutClassName = ' relative h-[100%] mt-[200px] max-md2:mt-[140px] max-2sm:mt-[100px] w-full overflow-hidden bg-white mb-[150px] ' +
5
- ' max-sm:mt-[20px] ', state, isTestLogin = false }) => {
5
+ ' max-sm:mt-[20px] ', state, isTestLogin = false, isCheckRecentLogin = false }) => {
6
6
  // const pathName = usePathname();
7
7
  // const userCheck = async (): Promise<boolean> => {
8
8
  // const result: ILoginInfo = await fetchUserData();
@@ -20,7 +20,7 @@ const Login = ({ layoutClassName = ' relative h-[100%] mt-[200px] max-md2:mt-[14
20
20
  // checkUser();
21
21
  // }, [pathName]);
22
22
  return (<Suspense>
23
- <LoginContainer layoutClassName={layoutClassName} state={state} isTestLogin={isTestLogin}/>
23
+ <LoginContainer layoutClassName={layoutClassName} state={state} isTestLogin={isTestLogin} isCheckRecentLogin={isCheckRecentLogin}/>
24
24
  </Suspense>);
25
25
  };
26
26
  export default Login;
@@ -10,13 +10,15 @@ interface props {
10
10
  layoutClassName?: string; // 높이 및 마진값 조절
11
11
  state: string;
12
12
  isTestLogin?: boolean;
13
+ isCheckRecentLogin?: boolean;
13
14
  }
14
15
 
15
16
  const Login = ({
16
17
  layoutClassName = ' relative h-[100%] mt-[200px] max-md2:mt-[140px] max-2sm:mt-[100px] w-full overflow-hidden bg-white mb-[150px] ' +
17
18
  ' max-sm:mt-[20px] ',
18
19
  state,
19
- isTestLogin = false
20
+ isTestLogin = false,
21
+ isCheckRecentLogin = false
20
22
  }: props) => {
21
23
  // const pathName = usePathname();
22
24
  // const userCheck = async (): Promise<boolean> => {
@@ -36,7 +38,12 @@ const Login = ({
36
38
  // }, [pathName]);
37
39
  return (
38
40
  <Suspense>
39
- <LoginContainer layoutClassName={layoutClassName} state={state} isTestLogin={isTestLogin} />
41
+ <LoginContainer
42
+ layoutClassName={layoutClassName}
43
+ state={state}
44
+ isTestLogin={isTestLogin}
45
+ isCheckRecentLogin={isCheckRecentLogin}
46
+ />
40
47
  </Suspense>
41
48
  );
42
49
  };