client: remove unnecessary signedIn state from post-page
This commit is contained in:
parent
3269dfc0dc
commit
57cded29c3
1 changed files with 0 additions and 3 deletions
|
@ -18,7 +18,6 @@ import CreatedAgoBadge from "@components/badges/created-ago-badge"
|
||||||
import Cookies from "js-cookie"
|
import Cookies from "js-cookie"
|
||||||
import PasswordModalPage from "./password-modal-wrapper"
|
import PasswordModalPage from "./password-modal-wrapper"
|
||||||
import VisibilityControl from "@components/badges/visibility-control"
|
import VisibilityControl from "@components/badges/visibility-control"
|
||||||
import useSharedState from "@lib/hooks/use-shared-state"
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
post: Post
|
post: Post
|
||||||
|
@ -35,8 +34,6 @@ const PostPage = ({ post: initialPost, isProtected }: Props) => {
|
||||||
const [isOwner] = useState(
|
const [isOwner] = useState(
|
||||||
post.users ? post.users[0].id === Cookies.get("drift-userid") : false
|
post.users ? post.users[0].id === Cookies.get("drift-userid") : false
|
||||||
)
|
)
|
||||||
const [signedIn] = useSharedState<boolean>("signedIn")
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const isMobile = useMediaQuery("mobile")
|
const isMobile = useMediaQuery("mobile")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue