diff --git a/apps/web/src/app/components/logout-button.tsx b/apps/web/src/app/components/logout-button.tsx index c707b882b..cf3d4654d 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 (