Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eye toggle #261

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/UserForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ const UserForm = () => {
className="w-full px-3 py-2 bg-white border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-400 dark:bg-[#000000] dark:text-white dark:border-gray-600 dark:focus:ring-purple-600"
/>
{!showEye ? (
<FaEye
<FaEyeSlash
className="relative left-[90%] top-[-27px]"
onClick={eyeToggle}
/>
) : (
<FaEyeSlash
<FaEye
className="relative left-[90%] top-[-27px]"
onClick={eyeToggle}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/signInForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ const SignInForm = () => {
className="w-full px-3 py-2 bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-400 dark:bg-[#000000] dark:text-white dark:border-gray-600 dark:focus:ring-purple-600"
/>
{!showEye ? (
<FaEye
<FaEyeSlash
className="relative left-[90%] top-[-27px]"
onClick={eyeToggle}
/>
) : (
<FaEyeSlash
<FaEye
className="relative left-[90%] top-[-27px]"
onClick={eyeToggle}
/>
Expand Down
Loading