client: remove unnecessary signedIn state from post-page

This commit is contained in:
Max Leiter 2022-04-18 14:51:02 -07:00
parent 3269dfc0dc
commit 57cded29c3
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A3512F2F2F17EBDA

View file

@ -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<boolean>("signedIn")
const router = useRouter()
const isMobile = useMediaQuery("mobile")