diff options
Diffstat (limited to 'components/login')
| -rw-r--r-- | components/login/login-form.tsx | 38 | ||||
| -rw-r--r-- | components/login/partner-auth-form.tsx | 2 |
2 files changed, 24 insertions, 16 deletions
diff --git a/components/login/login-form.tsx b/components/login/login-form.tsx index 67d9f8ac..8e9509c8 100644 --- a/components/login/login-form.tsx +++ b/components/login/login-form.tsx @@ -66,6 +66,13 @@ export function LoginForm() { message: undefined, }); + // // 영문 페이지에서 S-Gips 로그인 비활성화 시 기본 로그인 방법 설정 + // useEffect(() => { + // if (lng === 'en' && loginMethod === 'sgips') { + // setLoginMethod('username'); + // } + // }, [lng, loginMethod]); + // 이미 로그인된 사용자 리다이렉트 처리 useEffect(() => { if (status === 'authenticated' && session?.user) { @@ -510,18 +517,21 @@ export function LoginForm() { > {t('generalLogin')} </button> - <button - type="button" - onClick={() => setLoginMethod('sgips')} - className={cn( - "flex-1 rounded-md px-3 py-2 text-sm font-medium transition-all", - loginMethod === 'sgips' - ? "bg-background text-foreground shadow-sm" - : "text-muted-foreground hover:text-foreground" - )} - > - {t('sgipsLogin')} - </button> + {/* S-Gips 로그인은 영문 페이지에서 비활성화 0925 구매 요청사항*/} + {lng !== 'en' && ( + <button + type="button" + onClick={() => setLoginMethod('sgips')} + className={cn( + "flex-1 rounded-md px-3 py-2 text-sm font-medium transition-all", + loginMethod === 'sgips' + ? "bg-background text-foreground shadow-sm" + : "text-muted-foreground hover:text-foreground" + )} + > + {t('sgipsLogin')} + </button> + )} </div> {/* Username Login Form */} @@ -562,8 +572,8 @@ export function LoginForm() { </form> )} - {/* S-Gips Login Form */} - {loginMethod === 'sgips' && ( + {/* S-Gips Login Form - 영문 페이지에서 비활성화 0925 구매 요청사항*/} + {loginMethod === 'sgips' && lng !== 'en' && ( <form onSubmit={handleSgipsLogin} className="grid gap-4"> <div className="grid gap-2"> <Input diff --git a/components/login/partner-auth-form.tsx b/components/login/partner-auth-form.tsx index 10efaec5..56b1533d 100644 --- a/components/login/partner-auth-form.tsx +++ b/components/login/partner-auth-form.tsx @@ -62,8 +62,6 @@ export function CompanyAuthForm({ className, ...props }: React.HTMLAttributes<HT const currentLanguageText = i18n.language === "ko" ? t("languages.korean") - : i18n.language === "ja" - ? t("languages.japanese") : t("languages.english") // 로그인 페이지로 이동 |
