diff --git a/src/components/admin/AdminLogin.jsx b/src/components/admin/AdminLogin.jsx index 7b8c340..383a840 100644 --- a/src/components/admin/AdminLogin.jsx +++ b/src/components/admin/AdminLogin.jsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Card, CardContent } from '../ui/card' +import { Card, CardContent, CardHeader, CardTitle } from '../ui/card' import { Input } from '../ui/input' import { Button } from '../ui/button' import { adminLogin } from '../../lib/auth' @@ -21,7 +21,7 @@ export function AdminLogin({ onLoginSuccess }) { } else { setError('Invalid password. Please try again.') } - } catch (error) { + } catch { setError('Login failed. Please try again.') } finally { setLoading(false) @@ -31,6 +31,9 @@ export function AdminLogin({ onLoginSuccess }) { return (
+ + OpenShop Admin Login +