From 2b9000499d3ed89282ba925f0a631579a5f1b000 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Fri, 3 Jan 2025 21:59:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20logout=20menu=20item=20(#1?= =?UTF-8?q?479)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/app/components/logout-button.tsx | 10 ++++------ apps/web/src/components/user-dropdown.tsx | 19 +------------------ apps/web/src/components/user-provider.tsx | 7 +++++++ 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/apps/web/src/app/components/logout-button.tsx b/apps/web/src/app/components/logout-button.tsx index c707b882b86..cf3d4654d66 100644 --- a/apps/web/src/app/components/logout-button.tsx +++ b/apps/web/src/app/components/logout-button.tsx @@ -1,23 +1,21 @@ "use client"; -import { usePostHog } from "@rallly/posthog/client"; import type { ButtonProps } from "@rallly/ui/button"; import { Button } from "@rallly/ui/button"; +import { useUser } from "@/components/user-provider"; + export function LogoutButton({ children, onClick, ...rest }: React.PropsWithChildren) { - const posthog = usePostHog(); + const { logout } = useUser(); return (