Skip to content
Merged
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
7 changes: 5 additions & 2 deletions src/components/admin/AdminLogin.jsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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)
Expand All @@ -31,6 +31,9 @@ export function AdminLogin({ onLoginSuccess }) {
return (
<div className="min-h-screen bg-gray-50 flex items-center justify-center">
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>OpenShop Admin Login</CardTitle>
</CardHeader>
<CardContent>
<form onSubmit={handleSubmit} className="space-y-4">
<div>
Expand Down