diff --git a/src/components/ui/password-input.tsx b/src/components/ui/password-input.tsx index 473444e2..1b19f661 100644 --- a/src/components/ui/password-input.tsx +++ b/src/components/ui/password-input.tsx @@ -29,7 +29,7 @@ const PasswordInput = React.forwardRef setShowPassword(!showPassword)} - className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-sm disabled:cursor-not-allowed disabled:opacity-50" + className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50" disabled={props.disabled} aria-label={showPassword ? "Hide password" : "Show password"} > diff --git a/src/pages/GitSettings.tsx b/src/pages/GitSettings.tsx index e1ab0be1..303417ad 100644 --- a/src/pages/GitSettings.tsx +++ b/src/pages/GitSettings.tsx @@ -11,6 +11,7 @@ import { useGitHubOAuth } from '@/hooks/useGitHubOAuth'; import { useIsMobile } from '@/hooks/useIsMobile'; import { useNavigate } from 'react-router-dom'; import type { GitCredential } from '@/contexts/GitSettingsContext'; +import { PasswordInput } from '@/components/ui/password-input'; interface PresetProvider { id: string; @@ -191,9 +192,8 @@ export function GitSettings() {
- handleUpdateCredential(origin, { password: e.target.value })} @@ -260,9 +260,8 @@ export function GitSettings() {
) : (
- setPresetTokens(prev => ({ @@ -287,9 +286,8 @@ export function GitSettings() { ) : ( // Standard rendering for other providers
- setPresetTokens(prev => ({ @@ -346,9 +344,8 @@ export function GitSettings() {
- setCustomPassword(e.target.value)}