From 7f8c07b736b072667b7641dff4dd40a4269119f3 Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Wed, 30 Oct 2024 20:34:07 -0700 Subject: [PATCH] Prevent app bar and top bar from scrolling out of view --- src/components/navigational/appBar/AppBar.tsx | 11 +---------- src/components/navigational/topBar/TopBar.tsx | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/components/navigational/appBar/AppBar.tsx b/src/components/navigational/appBar/AppBar.tsx index 78c77b0f..2e2f6ef4 100644 --- a/src/components/navigational/appBar/AppBar.tsx +++ b/src/components/navigational/appBar/AppBar.tsx @@ -2,7 +2,6 @@ import { usePathname } from "next/navigation"; import NavItem from "../navbar/NavItem"; -import { useScrollContext } from "@/app/providers/scroll"; import useAgent from "@/lib/hooks/bsky/useAgent"; import { getUnreadNotificationsCount } from "@/lib/api/bsky/notification"; import { useQuery } from "@tanstack/react-query"; @@ -14,8 +13,6 @@ import { HiClipboardList, HiOutlineClipboardList } from "react-icons/hi"; export default function AppBar() { const pathname = usePathname(); - const val = useScrollContext(); - const canUpdate = typeof window !== "undefined"; const agent = useAgent(); const { data: notificationsCount, @@ -28,13 +25,7 @@ export default function AppBar() { }); return ( -