Program Commit

This commit is contained in:
2025-10-02 17:31:49 -04:00
parent fd73be0efd
commit 1341b325ee
39 changed files with 21396 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
const Login = () => {
const navigate = useNavigate();
useEffect(() => {
const storedUser = localStorage.getItem('user');
if (storedUser) {
navigate('/dashboard');
}
}, [navigate]);
const handleLogin = () => {
window.location.href = 'http://localhost:3002/auth/discord';
};
return (
<div>
<h2>Login</h2>
<button onClick={handleLogin}>Login with Discord</button>
</div>
);
};
export default Login;