mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
14 lines
399 B
JavaScript
14 lines
399 B
JavaScript
"use client"
|
|
import { useTeamConnexion } from "@/context/teamConnexionContext";
|
|
import LoginForm from "./components/loginForm";
|
|
|
|
export default function Home() {
|
|
const { login,useProtect } = useTeamConnexion();
|
|
useProtect();
|
|
return (
|
|
<div>
|
|
<LoginForm title={"Team login"} placeholder={"team ID"} buttonText={"Login"} onSubmit={(value) => login(parseInt(value))}/>
|
|
</div>
|
|
);
|
|
}
|