From 57cded29c3bf4e76df3019d1d68800d9eb342e7b Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 18 Apr 2022 14:51:02 -0700 Subject: [PATCH] client: remove unnecessary signedIn state from post-page --- client/components/post-page/index.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/components/post-page/index.tsx b/client/components/post-page/index.tsx index b9599e9f..3ddc8155 100644 --- a/client/components/post-page/index.tsx +++ b/client/components/post-page/index.tsx @@ -18,7 +18,6 @@ import CreatedAgoBadge from "@components/badges/created-ago-badge" import Cookies from "js-cookie" import PasswordModalPage from "./password-modal-wrapper" import VisibilityControl from "@components/badges/visibility-control" -import useSharedState from "@lib/hooks/use-shared-state" type Props = { post: Post @@ -35,8 +34,6 @@ const PostPage = ({ post: initialPost, isProtected }: Props) => { const [isOwner] = useState( post.users ? post.users[0].id === Cookies.get("drift-userid") : false ) - const [signedIn] = useSharedState("signedIn") - const router = useRouter() const isMobile = useMediaQuery("mobile")