slorber commented on a change in pull request #318:
URL: https://github.com/apache/apisix-website/pull/318#discussion_r624542274



##########
File path: website/src/theme/DocSidebar/index.js
##########
@@ -162,19 +175,14 @@ function DocSidebar({
   isHidden,
   docPluginId
 }) {
+  const showAnnouncementBar = useShowAnnouncementBar();
   const [showResponsiveSidebar, setShowResponsiveSidebar] = useState(false);
   const {
     navbar: {
       hideOnScroll
     },
     hideableSidebar
   } = useThemeConfig();
-  const {
-    isAnnouncementBarClosed
-  } = useUserPreferencesContext();
-  const {
-    scrollY
-  } = useScrollPosition();

Review comment:
       breaking change on the useScrollPosition internal hook




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to