mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-04-25 00:36:32 +02:00
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>
15 lines
427 B
TypeScript
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} />;
|
|
}
|