From f640afbcb1188bbe69448c66e0f26fd2a4e659fd Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao Date: Sat, 5 Apr 2025 00:30:22 +0200 Subject: [PATCH] fix --- src/app/blog/[[...tag]]/ActionButtons.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/blog/[[...tag]]/ActionButtons.tsx b/src/app/blog/[[...tag]]/ActionButtons.tsx index 3f4d747..7532355 100644 --- a/src/app/blog/[[...tag]]/ActionButtons.tsx +++ b/src/app/blog/[[...tag]]/ActionButtons.tsx @@ -1,5 +1,6 @@ "use client"; +import { signIn } from "next-auth/react"; import { useRouter } from "next/navigation"; export default function ActionButtons({ loggedIn }: { loggedIn: boolean }) { @@ -29,7 +30,7 @@ export default function ActionButtons({ loggedIn }: { loggedIn: boolean }) { cursor: "pointer", fontSize: "0.8rem", }} - onClick={() => router.push("/blog/login")} + onClick={() => signIn()} > login