PriceGhost/frontend/src/pages/Login.tsx
clucraft 10660e5626 Initial commit: PriceGhost price tracking application
Full-stack application for tracking product prices:
- Backend: Node.js + Express + TypeScript
- Frontend: React + Vite + TypeScript
- Database: PostgreSQL
- Price scraping with Cheerio
- JWT authentication
- Background price checking with node-cron
- Price history charts with Recharts
- Docker support with docker-compose

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:58:13 -05:00

15 lines
427 B
TypeScript

import { useNavigate } from 'react-router-dom';
import { useAuth } from '../hooks/useAuth';
import AuthForm from '../components/AuthForm';
export default function Login() {
const { login } = useAuth();
const navigate = useNavigate();
const handleLogin = async (email: string, password: string) => {
await login(email, password);
navigate('/');
};
return <AuthForm mode="login" onSubmit={handleLogin} />;
}