diff --git a/src/components/auth/view/AuthErrorAlert.tsx b/src/components/auth/view/AuthErrorAlert.tsx index 96a6be41..0325759f 100644 --- a/src/components/auth/view/AuthErrorAlert.tsx +++ b/src/components/auth/view/AuthErrorAlert.tsx @@ -1,3 +1,5 @@ +import { AlertCircle } from 'lucide-react'; + type AuthErrorAlertProps = { errorMessage: string; }; @@ -8,8 +10,9 @@ export default function AuthErrorAlert({ errorMessage }: AuthErrorAlertProps) { } return ( -
-

{errorMessage}

+
+ +

{errorMessage}

); } diff --git a/src/components/auth/view/AuthInputField.tsx b/src/components/auth/view/AuthInputField.tsx index b382a059..a6fa64be 100644 --- a/src/components/auth/view/AuthInputField.tsx +++ b/src/components/auth/view/AuthInputField.tsx @@ -1,3 +1,7 @@ +import { useState } from 'react'; +import type { ComponentType } from 'react'; +import { Eye, EyeOff } from 'lucide-react'; + type AuthInputFieldProps = { id: string; label: string; @@ -8,13 +12,14 @@ type AuthInputFieldProps = { type?: 'text' | 'password' | 'email'; name?: string; autoComplete?: string; + icon?: ComponentType<{ className?: string }>; }; /** * A labelled input field for authentication forms. * Renders a `