import { useEffect } from "react"; import { useNavigate } from "react-router-dom"; import { useAuth } from "../hooks/useAuth.js"; export const Login = (): React.ReactElement => { const { user, loading } = useAuth(); const navigate = useNavigate(); useEffect(() => { if (!loading && user) { navigate("/admin"); } }, [user, loading, navigate]); const error = new URLSearchParams(window.location.search).get("error"); return (

Oriana

Admin access via Discord

{error === "unauthorised" && (
Your Discord account is not authorised to access this dashboard.
)} Sign in with Discord
← Back to status page
); };