check callback from lichess server

This commit is contained in:
2026-06-07 22:44:31 +02:00
parent 585bb5549f
commit 0888df153f
9 changed files with 154 additions and 9 deletions
+5 -5
View File
@@ -1,12 +1,12 @@
interface IProps {
onClickHandler: () => void;
}
import { useLichess } from "#/hooks/useLichess.ts";
const LichessButton = () => {
const { lichessLogin, lichessLogout } = useLichess();
const LichessButton = ({ onClickHandler }: IProps) => {
return (
<button
className="text-(--accent) border rounded-xl px-6 py-3 cursor-pointer flex items-center gap-2 p-2 hover:bg-(--accent) hover:text-(--header-bg) transition-colors duration-300 ease-in-out"
onClick={onClickHandler}
onClick={lichessLogin}
type="button"
>
<div className="w-6 h-6">