Skip to content

Commit

Permalink
refactor: 잘못된 속성 명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
khj0426 committed Nov 6, 2023
1 parent 7b1658a commit e0472b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/pages/LoginPage/components/LoginGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface LoginGroupProps {
handleLogin: (email: string, password: string) => void
}

const LoginGroup = (props: LoginGroupProps) => {
const LoginGroup = ({ handleLogin }: LoginGroupProps) => {
const [showPassword, setShowPassword] = useState<boolean>(false)
const handleEyeClick = () => {
setShowPassword(!showPassword)
Expand All @@ -29,10 +29,10 @@ const LoginGroup = (props: LoginGroupProps) => {
<form
className="flex flex-col gap-5"
onSubmit={handleSubmit((data) => {
props.handleLogin(data.email, data.password)
handleLogin(data.email, data.password)
})}
>
<div className="dark:focus-within:border-white\ flex flex-col justify-center gap-[0.44rem] rounded-md border border-gray-100 bg-white px-[0.63rem] pb-[0.69rem] pt-[0.31rem] focus-within:border-black dark:bg-main-red-200">
<div className="flex flex-col justify-center gap-[0.44rem] rounded-md border border-gray-100 bg-white px-[0.63rem] pb-[0.69rem] pt-[0.31rem] focus-within:border-black dark:bg-main-red-200 dark:focus-within:border-white">
<label className="fontSize-xs text-gray-100">이메일</label>
<input
{...register('email')}
Expand Down Expand Up @@ -68,8 +68,8 @@ const LoginGroup = (props: LoginGroupProps) => {
)}

<button
className="h-14 rounded-xl bg-active-orange text-lg text-white hover:border hover:border-black disabled:bg-opacity-50 dark:text-black md:text-xl"
disabled={!!(errors.email || errors.password)}
className="pointer-cursor h-14 rounded-xl bg-active-orange text-lg text-white hover:border hover:border-black disabled:bg-opacity-50 dark:text-black md:text-xl"
disabled={!!(errors.email ?? errors.password)}
>
로그인
</button>
Expand Down
1 change: 0 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ export default {
},
},
},

plugins: [rippleui],
}

0 comments on commit e0472b7

Please sign in to comment.