From 38e56e07e05efc6e63ee454eeac5d3f1ea9f811a Mon Sep 17 00:00:00 2001
From: MarconLP <13001502+MarconLP@users.noreply.github.com>
Date: Sun, 16 Apr 2023 13:20:35 +0200
Subject: [PATCH] show profile component on individual video page
---
src/components/ProfileMenu.tsx | 5 +++--
src/pages/share/[videoId].tsx | 8 +++++++-
src/pages/videos.tsx | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/components/ProfileMenu.tsx b/src/components/ProfileMenu.tsx
index e71c6c6..86e4b89 100644
--- a/src/components/ProfileMenu.tsx
+++ b/src/components/ProfileMenu.tsx
@@ -1,6 +1,6 @@
import { Menu, Transition } from "@headlessui/react";
import { Fragment } from "react";
-import { signOut } from "next-auth/react";
+import { signOut, useSession } from "next-auth/react";
import { useRouter } from "next/router";
import { api } from "~/utils/api";
@@ -8,6 +8,7 @@ export default function ProfileMenu() {
const { mutateAsync: createBillingPortalSession } =
api.stripe.createBillingPortalSession.useMutation();
const { push } = useRouter();
+ const { data: session } = useSession();
return (