Skip to content

Commit

Permalink
feat: 엔터시 로그인
Browse files Browse the repository at this point in the history
  • Loading branch information
urimeee committed Nov 21, 2024
1 parent 5f6116b commit d0dec9b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/moim_front/src/components/AuthLeft/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,19 @@ function AuthLeft({

else {
console.log(setOpenAlertModal)
setOpenAlertModal(error.message);
setOpenAlertModal("로그인 정보를 입력해주세요.");
}
});
};

const activeEnter= (e) => {
if(e.key === "Enter"){
onLoginClick();
}
}

return (
<div className={`${className}`}>
<div className={`${className}`} onKeyDown={activeEnter}>
<div className="w-full max-w-lg">
<AuthTitle
title={title}
Expand Down

0 comments on commit d0dec9b

Please sign in to comment.