Skip to content

Commit

Permalink
change icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
KY233466 committed Nov 8, 2024
1 parent b34e53a commit cdbd234
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@ export default function LoginForm() {
endAdornment: (
<InputAdornment position="end">
<IconButton>
{password != "" && (showPassword ? (
<VisibilityIcon onClick={() => setShowPassword(false)} />
) : (
<VisibilityOffIcon onClick={() => setShowPassword(true)} />
))}
{password != "" &&
(showPassword ? (
<VisibilityIcon
sx={{ color: "#138D8A" }}
onClick={() => setShowPassword(false)}
/>
) : (
<VisibilityOffIcon
sx={{ color: "#138D8A" }}
onClick={() => setShowPassword(true)}
/>
))}
</IconButton>
</InputAdornment>
),
Expand Down

0 comments on commit cdbd234

Please sign in to comment.